This is "myfolder":
tree -a 'myfolder'
myfolder
├── 20220902
│ ├── filefoo
│ └── filebar
├── 20221001
│ ├── filefoo
│ └── filebar
└── 20221015
├── filefoo
├── filebar
└── filexyz
etc...
my command:
find $folder/$(date +"%Y%m"*) -type f | xargs -I {} awk '/^total:/{sub(".*/", "", FILENAME); print FILENAME" "$NF}' {})
Problem: i need exclude weekends. How do I do it?
PD: I know that in bash/awk it is
%u The weekday as a decimal number (1–7). Monday is day one.
thanks
Update Solved!
I found the answer in stackoverflow HERE