--- [EMAIL PROTECTED] wrote: > How can I generate a directory listing, including permissions > represented in octal, instead of "r", "w", & "x"?
Use "stat" to piece it together: [EMAIL PROTECTED] n6tadam]$ stat -c '%a %A %G %U %N' * 644 -rw-r--r-- n6tadam n6tadam `trymr' 644 -rw-r--r-- n6tadam n6tadam `trytrytry.wav' 644 -rw-r--r-- n6tadam n6tadam `typical.png' 600 -rw------- n6tadam n6tadam `ugh.pdf' 644 -rw-r--r-- n6tadam n6tadam `vsound.wav' as an example. See the man page. :) -- Thomas Adam ===== "The Linux Weekend Mechanic" -- http://linuxgazette.net "TAG Editor" -- http://linuxgazette.net "<shrug> We'll just save up your sins, Thomas, and punish you for all of them at once when you get better. The experience will probably kill you. :)" -- Benjamin A. Okopnik (Linux Gazette Technical Editor) ___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]