List info about files/directories with spaces

view story

http://unix.stackexchange.com – I am trying to use ls to get information about files and directories. My current command fails to properly get the name whenever a file/directory has a space. I am using this to list all files/directories in a directory: ls -al --time-style=+%s . | awk '{if ($7 != ".." && $7 != "." && $1 != "total") print $1"\t"$3"\t"$5"\t"$6"\t"$7}' Say I have 3 directories in my pwd "no-spaces-dir", "some dir", "some other dir", this would be the output: drwxr-xr-x. testuser 4096 1349853378 no-space-dir drwxr-xr-x. testuser 4096 1349853387 some drwxr-xr-x. (HowTos)