View Single Post
Old Jan 30th, 2005, 12:42 PM   #2
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
in your script, have ls -lstr > file

then have a while loop that gets fed file

inside the while loop...

assign a variable to the 10th position in that file (the filename of the current file in your dir) - you can do this with awk

then, still in the loop, call your a.out $curFile > newFile
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote