in reply to Command line question
perl -pe 'chomp; print `ls /home/$_/bin`;' file | grep filename
Any suggestions for a pure Perl one-liner, anyone? Maybe something like:
perl -pe 'print if glob <"/home/$_/bin/filename">;' file
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Command line question
by Kanji (Parson) on Dec 03, 2000 at 11:04 UTC |