|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to display file permission in numerical format without using stat
Hello all,
I am using HP-UX. I am not able to find stat command on my machine. When I do ls -l command I am getting rwxrwxrwx ....... Instead how can I retrieve the file permission in numerical form. Thanks in advance, Murugesan
__________________
Dinesh_P_V |
|
#2
|
|||
|
|||
|
That is much harder than it seems. See this thread. And read through the thread to to end. Note that my script has a bug which is corrected a few posts later. The final awk solution posted by Jimbo may be the best approach.
|
|
#3
|
|||
|
|||
|
Thanks Perderabo for pointing to the link. That was really useful.
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > how to display file permission in numerical format without using stat |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|