On Mon, Aug 16, 2021 at 8:17 PM Michael Barnes <barnmich...@gmail.com> wrote:
> Actually, they are callsigns instead of names. A couple of examples: > > w7...@k-0496-20210526.txt > wa7...@k-0497-20210714.txt > n8...@k-4386-20210725.txt > > I would like a simple count of the unique callsigns on a random basis and > possibly an occasional report listing each callsign and how many files are > in the folder for each. > > Michael > Here's a mock solution based on what Wes wrote: $ mkdir Processed/ $ touch Processed/{foo@{01..10},bar@{05..20},dog@{10..30}} $ ls Processed/ bar@05 bar@08 bar@11 bar@14 bar@17 bar@20 dog@12 dog@15 dog@18 dog@21 dog@24 dog@27 dog@30 foo@03 foo@06 foo@09 bar@06 bar@09 bar@12 bar@15 bar@18 dog@10 dog@13 dog@16 dog@19 dog@22 dog@25 dog@28 foo@01 foo@04 foo@07 foo@10 bar@07 bar@10 bar@13 bar@16 bar@19 dog@11 dog@14 dog@17 dog@20 dog@23 dog@26 dog@29 foo@02 foo@05 foo@08 $ find Processed/ -type f | cut -d @ -f1 | sort | uniq -c 16 Processed/bar 21 Processed/dog 10 Processed/foo Is that close to what you are looking for? Regards, - Robert