Brad Grandorff am Donnerstag, 14. Dezember 2006 03:02:
> > "D. Bolliger" <[EMAIL PROTECTED]> wrote: Brad Grandorff am Donnerstag, 14.
Dezember 2006 01:58:
> > > I have managed to get a one liner working for modifying a particular
> > > file in a directory, and I have also used arrays to read in th
Given the filename is ended with ".txt",you may try this way.
$ cd /your/dir
$ perl -pi -nle 's/foo/bar/' *.txt
This will replace 'foo' with 'bar' in all *.txt file in current dir.
Good luck.
-Original Message-
>From: Brad Grandorff <[EMAIL PROTECTED]>
>Sent: Dec 14, 2006 8:58 AM
>To: be
Brad Grandorff am Donnerstag, 14. Dezember 2006 01:58:
> I have managed to get a one liner working for modifying a particular file
> in a directory, and I have also used arrays to read in then modify a
> particular file... but I can't seem to do so using opendir and reading in
> several files at on