|
help Needed regarding usage of loops and strings in awk
i wanted to copy all nonempty files with same extension from one Adirectory to Bdirectory. The order of fields of text present in each file needed to be inversed.
if the a file in Adirectory contains text:
Daniel steve
after copying the file in B directory text should be displayed as:
steve Daniel
i had done some of the coding with awk for a single file transfer.i.e awk { print $2 " " $1 } filename
but if each directory contains muliple number of same extension files.i am not able to find out apt commands for copying each and every individual file and at the same time inversing the content .plzz help me out....
Last edited by helpneeded; 10-08-2007 at 09:25 PM..
Reason: wrong classification
|