‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, October 18th, 2021 at 5:42 AM, Chris F.A. Johnson
<chris@cfajohnson.com> wrote:
On Mon, 18 Oct 2021, tolugboji via wrote:
I am using the following command with null record separators for a set of png
files, and cannot
figure out why only one png file is being printed.
find "$fdir" -type f -name "${fnam}-*.png" -print0 | awk -v RS='\0' -F'[-.]'
'{print $(NF-1), $0}' | cat -vet
How many files does this find:
find "$fdir" -type f -name "${fnam}-*.png"
-----------------------------------------------------------------------------
Chris F.A. Johnson
It finds 13 files, namely
/home/flora/edvart/docs/schimmel-04.png
/home/flora/edvart/docs/schimmel-05.png
/home/flora/edvart/docs/schimmel-06.png
/home/flora/edvart/docs/schimmel-07.png
/home/flora/edvart/docs/schimmel-08.png
/home/flora/edvart/docs/schimmel-09.png
/home/flora/edvart/docs/schimmel-10.png
/home/flora/edvart/docs/schimmel-11.png
/home/flora/edvart/docs/schimmel-12.png
/home/flora/edvart/docs/schimmel-13.png
/home/flora/edvart/docs/schimmel-1.png
/home/flora/edvart/docs/schimmel-2.png
/home/flora/edvart/docs/schimmel-3.png