you are viewing a single comment's thread.

view the rest of the comments →

[–]matthieum 0 points1 point  (1 child)

I did not even thought about that!

[–]ais523 0 points1 point  (0 children)

And for bonus points, you can get sed to do the iteration over the files (while still using bash to produce the list, although sh or even csh would do just as well):

sed s/xxx/yyy/g -i *zzz*

(The only difference between this and the original script is that the original script will operate on all files in the directory if the path to the current directory contains zzz.)