Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (8 sloc) 194 Bytes
#!/bin/sh
# print octal mode for a file
# License: LGPLv2
if [ $# -ne 1 ]; then
echo "Usage: `basename $0` path" >&2
exit 1
fi
stat $1 | sed -n 's/^Access: (\([0-9]\{1,\}\).*/\1/p'
Something went wrong with that request. Please try again.