|
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."
|