Permissions on a file

From: Spalding, Stephen <SSpaldin_at_mem-ins.com>
Date: Tue, 09 Jun 1998 13:28:11 -0500

Hi everyone!

Does anyone know of a command to use in a shell script which will give the
permissions of a file? I know that if I do
" ls -l filename|awk '{print $1}' " it will give me the permissions of the
file in the form of -rwxr-xr-x which isn't what I need. I was hoping to get
the permissions in the form of 755 instead.

Thanks!


Stephen Spalding
Associate System Administrator
Missouri Employers Mutual Insurance
sspaldin_at_mem-ins.com
1000 West Nifong
Columbia, MO 65203
(573) 499-4230
(800) 442-0590
fax (573) 499 - 4310
Received on Tue Jun 09 1998 - 20:31:13 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT