Permission bit calculator ???

Hi,

Does anyone have a UNIX permission bit calculator script that I can use?

Basically, am looking for one where I don't have to a ls -l to check the permission on a file or directory. Am looking for a script that will display the permission bits and then just display what those permission bit settings are and its correspong number equivalent.

Any suggested link will be very much appreciated. Thanks in advance.

stat -c %A yourfile

see man stat for more options