
4 Jun
2013
4 Jun
'13
9:37 a.m.
Andrew Spiers <andrew@andrewspiers.net> wrote:
Is this the best way?
dpkg -L python-docutils | xargs ls -dF | grep \*
Perhaps a variant of this? for fn in $(dpkg -L python-docutils) ; do [ -f $fn -a -x $fn ] && echo $fn ; done You could use the officially deprecated but ubiquitous `...` syntax rather than $(...) if you prefer. Note that the -f test is needed to exclude directories.