The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-21-2009
giannicello giannicello is offline
Registered User
  
 

Join Date: Sep 2001
Location: Phoenix
Posts: 169
Not sure how to do it in perl but in shell scripting, I'd create a function that would read/parse the file:

Code:
parseFile () {
  fileNm=$1
  do something...
}
then I would call the function all at once in the script...

Code:
parseFile "file1" &
parseFile "file2" &
parseFile "file3" &

wait
etc.

Gianni