> "Raj" == Raj Karadakal <[EMAIL PROTECTED]> writes:
Raj> Hi,
Raj>I am trying to modify some file sin place usinh the -i switch of
Raj> perl. In each of the files however I need to replace certain strings with
Raj> file name it self.
Raj> When I try the following command
Raj> perl -i.orig
Raj (Basavaraj) Karadakal said:
> Hi,
> I am trying to modify some file sin place usinh the -i switch of
> perl. In each of the files however I need to replace certain strings with
> file name it self.
>
> When I try the following command
> perl -i.orig -pe 's//$0/' `ls -1`
>
> Will replace
Hi,
I am trying to modify some file sin place usinh the -i switch of
perl. In each of the files however I need to replace certain strings with
file name it self.
When I try the following command
perl -i.orig -pe 's//$0/' `ls -1`
Will replace '' with '-e' in all the files
How can I get th