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
In reply to Re: Command line question
by chromatic
in thread Command line question
by monk2b
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |