Re: making a sed recursive

2006-08-29 Thread Avraham Rosenberg
On Mon, Aug 28, 2006 at 08:53:58PM +0300, Aaron Mehl wrote: Hi all, I have sed finding and replacing for me. Thanks to Alex and Tzafrir for your help :) but I need to do it for a whole directory of files. I found a script that uses sed for another recursive task and tried to

RE: making a sed recursive

2006-08-29 Thread Dan Bar Dov
-Original Message- [snip] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] Hi, Does your script

Re: making a sed recursive

2006-08-29 Thread Alex Alexander
Your code actually works for me! I tried it with some sample files I created and it worked as it should, replacing the string with % in each file. Perhaps your shell has trouble understading *.ly. Try for fl in `ls *.ly`; do .. also, the sed --in-place 's/barNumberCheck/%/g' $fl suggestion

making a sed recursive

2006-08-28 Thread Aaron Mehl
Hi all, I have sed finding and replacing for me. Thanks to Alex and Tzafrir for your help :) but I need to do it for a whole directory of files. I found a script that uses sed for another recursive task and tried to substitute my replace script, but alas it didn't work.