Code: Alles auswählen
mkdir /tmp/d1 && cd /tmp/d1
truncate -s 111 file
truncate -s 333 'a file with space'
\ls -l
total 0
-rw-r--r-- 1 dtc dtc 333 Sep 21 13:04 a file with space
-rw-r--r-- 1 dtc dtc 111 Sep 21 13:04 file1
Code: Alles auswählen
ls -l|awk '{print $5,$9..$NR}'
awk: {print $5,$9..$NR}
awk: ^ syntax error
Code: Alles auswählen
ls -l|perl -anXE'print "$F[4] ";for($i=0;$i<$#F-7;++$i){print "$F[8+$i] "};say ""'
333 'a file with space'
111 file1
Code: Alles auswählen
ls -l|perl -nE'say "$1 $2" if /^(?:\S+\s+){4}(\S+)\s+(?:\S+\s+){3}(.*)/'
333 'a file with space'
111 file1
Code: Alles auswählen
for i in *;do stat -c "%s %n" "$i";done
333 a file with space
111 file1
Code: Alles auswählen
find -print0|xargs -0 stat -c "%s %n"
4096 .
111 ./file1
333 ./a file with space