ICT: Diary
D: 28 W: 05
| < | January 2016 | > | ||||
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 | ||||||
[ < ]
Wednesday, 27 January 2016 [ >
]
File Permissions
This answer gave to good tools for printing file permissions in octal:
stat -c %a [filename]
find [path] -print '%m %p\n'
Which is a simpler approach to the problem than this stackoverflow post:
ls -ltha |
awk '{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/) \
*2^(8-i)); if(k)printf("%0o ",k); print}'
Although the second answer works in OpenBSD and Ubuntu.
$Id: dates.htm,v 1
$Id: diary,v 1.38 2025/01/01 22:43:54 fred Exp $