i Am using the below query and printing the $8 and $9 filed..
find /A/B/C/{1,3,5,7} -name ".txt" -o -name ".csv" -o -name ".TXT" -o -name ".dat" |xargs ls -ltr |awk '{print $8 ,$9}' > result.xls
this give me the rsult like below..
2008/home/ADMIN/om/1.txt
2008/home/ADMIN/om/hi.txt
this result is comming in the Column A of the excel sheet.
but i need the result $8 in Column A and $9 in column B filed of the excel sheet..
like 2008 in Column A filed which is $8 field and rest in column B which is $9
what i should do with the above query so that the result will come in different column in the excel sheet..
thanks..