[colug-432] show path stuff
jep200404 at columbus.rr.com
jep200404 at columbus.rr.com
Fri Oct 30 12:01:49 EDT 2015
What's a better way than the following code
of doing ls -ld for a file and all of its parent directories?
[sb at dojo ~]$ f=/etc/udev/rules.d/70-persistent-ipoib.rules
[sb at dojo ~]$ while [ "x$f" != "x" ]; do ls -ld "$f";f=`echo "$f" | sed -e 's%/[^/]*$%%'`;done
-rw-r--r--. 1 root root 709 Mar 6 2015 /etc/udev/rules.d/70-persistent-ipoib.rules
drwxr-xr-x. 2 root root 38 Jun 23 19:48 /etc/udev/rules.d
drwxr-xr-x. 3 root root 51 Jul 1 13:30 /etc/udev
drwxr-xr-x. 146 root root 12288 Oct 23 15:18 /etc
[sb at dojo ~]$
More information about the colug-432
mailing list