19 Jul
2001
19 Jul
'01
4:18 a.m.
Check out the 'stat' command and 'stat -t'.
Unfortunately it gives full modes in HEX! Some shell hackery: set -- $(ls -l foo) OCTMODE=$(echo "ibase=2;obase=8;$(echo $1 | tr -- '-drlwcxb' '0 1 1 1 ')" | bc) Season to taste. Tweak for hex to octal conversion. ccb -- Charles C. Bennett, Jr. VA LiNUX Systems Systems Engineer, Northeast US 25 Burlington Mall Rd., Suite 300 +1 617 543-6513 Burlington, MA 01803-4145 ccb@valinux.com www.valinux.com