Saurabh Singhvi wrote:
HI all,
Hello,
i want to write a perl script in linux that would get the file names in the directory i am running it in and then execute a system command for each file.(the encoding line). how should i go about it??
perl -mstrict -we 'for(`ls`) { chomp;print `grep foo $_`; }'
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>