My another question is ...
How do we get the modification date of a file.?
I just/only want the modification date.?i cant use 'ls' cmd, this displays all fields
Please help!
Thanks
The man page for ls and the awk command.
-E The same as -l, except displays time to the nanosecond and with one format for all files regardless of age: yyyy-mm-dd hh:mm:ss.nnnnnnnnn (ISO 8601:2000 format). In addition, this option displays the offset from UTC in ISO 8601:2000 standard format (+hhmm or -hhmm) or no characters if the offset is indeterminable. The offset reflects the appropriate standard or alternate offset in force at the file's displayed date and time, under the current timezone.
ls -E f1.sh | awk '{print $6, $7, $8}'