$ zgrep -A3 '%A%p' /usr/share/info/find.info.gz
newest=$(find subdir -newer timestamp -printf "%A%p\n" |
sort -n |
tail -1 |
cut -d: -f2- )
is taken from findutil's (4.4.2-4) documentation. It doesn't work
here:
$ mkdir -v subdir
mkdir: created directory `subdir'
$ touch subdir/file
$ find subdir -printf "%A%p\n"
%p
%p
$ find subdir -printf "%A\n"
%\n%\n$
I think the documentation's example assumes "%A\n" is supposed to
print time information as is. While, in fact, there must be a
modifier after the 'A'. Does
find subdir -printf "%A\n"
print time information for you? Am I right that the documentation's
example assume it should work as is?
Does the example also bad with respect to "%p"? If so, what is the
correct formatting?
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive:
http://lists.debian.org/[email protected]