j
k
j a
j l
That seemed to produce the correct output, but echo was only called once. But with your idea about using IFS, i managed to get this, which does work: IFS=" "; for name in `/bin/ls -1 | sort -r` ; do echo line: $name ; done
That seemed to produce the correct output, but echo was only called once. But with your idea about using IFS, i managed to get this, which does work:
IFS=" "; for name in `/bin/ls -1 | sort -r` ; do echo line: $name ; done
ls -l | sort -r | xargs echo ?
Back to the thread
Back to the list