As already mentioned, do not disassemble ls. If you want to get file information, use stat
stat -c "%s %y %U %G %A %n" filename
You may need to do extra work to format the timestamp as you want.
$ ls -l data -rw-r--r-- 1 glennj glennj 13 2013-01-01 11:19 data $ LC_TIME=POSIX ls -l data -rw-r--r-- 1 glennj glennj 13 Jan 1 11:19 data $ stat -c "%s %y %U %G %A %n" data 13 2013-01-01 11:19:53.670015242 -0500 glennj glennj -rw-r--r-- data $ stat -c "%s %Y %U %G %A %n" data | awk '{$2 = strftime("%b %e %H:%M", $2)} 1' 13 Jan 1 11:19 glennj glennj -rw-r--r-- data
glenn jackman
source share