Originally posted by: leahcim
Hi All,
I use the command
find . -type f -exec sed 's/pattern_a/pattern_b/' {} \;
to find all files in the current and sub directories which has pattern_a and replace it with pattern_b.
The command did not really do the work, though. It does not replace the pattern in the file; it just print it out on the screen.
Could any one help on this point to improve this one line command to save me from writing a script, thanks in advance.
Best regards,
leahcim
#AIX-Forum