> -----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 choke telling you that it has no idea who is
> $fl.old ?
> My guess is that the correct syntax for what you intended to do
> is:
>  for fl in *.ly; do
>          mv $fl ${fl}.old
>          sed 's/barNumberCheck/%/g' ${fl}.old > $fl
>          #rm -f ${fl}.old
>  done


Let sed do the copying around:
for fl in *.ly; do
          sed --in-place 's/barNumberCheck/%/g'  $fl
done

or if you do not have too many files

sed --in-place 's/barNumberCheck/%/g'  *.ly

Dan

> 
> Cheers, Avraham
> 
> 
> =================================================================
> 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]
> 
> 

================================================================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]

Reply via email to