Linux » utils

utils

Last modified by root on 14-04-2013

Sed Grep search and replace

grep -rl 'price\\' ./ | xargs sed -i 's/price\\/price\//g'              (replace price\ to price/)

for sed:

  • Write the regex between single quotes.
  • Use '\'' to search for a single quote.
  • Put a backslash before $.*/[\]^ and only those characters.
Tags:
Created by root on 14-04-2013

Spaces

 | Arduino | Blog | Dashboard | Java | Linux | Main | MulltiWii | NEAX2000 | Radio | VOIP


This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 3.5 - Documentation