T
tweetiebirds
Hi,
I am trying to use Perl command line for a bunch of sys admin tasks.
I would like to do this:
------------------------
Read output from a perl -V command and grep for lines containing words
starting with /usr or many spaces followed by /usr
then search these lines (each line will be a directory starting with
/usr or spaces and then /usr) for a filename (dogs.dat)
How can I do this efficiently with perl command line (perl -i -pi etc
).
Thanks,
T
I am trying to use Perl command line for a bunch of sys admin tasks.
I would like to do this:
------------------------
Read output from a perl -V command and grep for lines containing words
starting with /usr or many spaces followed by /usr
then search these lines (each line will be a directory starting with
/usr or spaces and then /usr) for a filename (dogs.dat)
How can I do this efficiently with perl command line (perl -i -pi etc
).
Thanks,
T