Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docs:bash:search_and_replace_in_files [2009/05/29 12:00] – billh | docs:bash:search_and_replace_in_files [2009/06/03 10:45] (current) – billh | ||
---|---|---|---|
Line 3: | Line 3: | ||
grep -Z -R -l -E ' | grep -Z -R -l -E ' | ||
</ | </ | ||
+ | |||
+ | ===== Advanced Example ===== | ||
+ | * :!: remember to escape parenthesis when using [[sed]] | ||
+ | * this example finds all occurrences of ' | ||
+ | < | ||
+ | grep -Z -R -l -E ' | ||
+ | </ | ||
+ | |||
+ | ===== FreeBSD 5 Example ===== | ||
+ | * the -Z parameter was different for grep, so it actually wanted %%--null%% | ||
+ | * the backup extension for sed was not optional, so ' | ||
+ | < | ||
+ | grep --null -R -l -E ' | ||
+ | </ | ||
+ | |||
+ | ===== See Also ===== | ||
+ | * [[sed]] | ||
+ |