[PLUG] Counting Files
Randy Bush
randy at psg.com
Tue Aug 17 03:45:51 UTC 2021
> find Processed -type f -printf '%f\n' | sed "s/@.*//" | uniq -c
can you point me to where it is documented that `find` is guaranteed
to produce an ordered list? yes, it seems to often do so, but i have
learned not to trust it. so i would
... | sort | uniq -c
woulda been cool to use `sort -u` but it does not produce a count
but i like your `sed` hack. i a more of an `awk` user, but i like
the terseness of your hack
randy
More information about the PLUG
mailing list