Hi,
I have a perl code, with usage:
mycode.pl file.txt > file1.out
Now I would like to execute this code for files in multiple directory (e.g. dir1, dir2, dir3, ...dir10).
As I am new for both Bash and Perl, would like to know if it is be easier to do this with Perl or Bash?
I have already have a bash script (didn't know how to proceed):
------------------------------- #!bin/bash
for i in * do if [ -d $i ] then find $i -name '*.fa*'
#perl mycode.pl $i > #????? don't know how to go from here fi done -------------------------------------
Would any body kindly advice?
Thanks so much for your time. Hope to hear from you again
Regards Edward WIJAYA SINGAPORE -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>