this

ls -l | egrep '^-' | awk '{print substr($0, index($0,$9))}'

produces this in debian/ubuntu:

-rwxr-xr-x 1 root root   1525 2006-09-19 20:38 zforce
-rwxr-xr-x 3 root root   3561 2006-09-19 20:38 zgrep
-rwxr-xr-x 1 root root    103 2006-09-19 20:38 zless
-rwxr-xr-x 1 root root   1886 2006-09-19 20:38 zmore
-rwxr-xr-x 1 root root   3518 2006-09-19 20:38 znew

it needs to be adjusted to:

ls -l | egrep '^-' | awk '{print substr($0, index($0,$8))}'

to produce the correct result.

this was the reason i initially thought that it was wrong, you were running
it in redhat and those same commands were not producing the expected results
in debian.
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to