I have a command in bashscript that will find the files from a wildcard folder name and count it from that wildcard folder we have a test folder that I want to exclude from count.
Here is my command
echo $(date "+%b %_d")
echo "$today"
sr_today=$(find /mnt/data/project_data/web_collab/mailbox/*/sr_pdf/*.pdf -type f -ls | grep "$today" | wc -l)
In the mailbox folder there are folders named
000000
111111
222222
333333
so on...
I want to exclude 000000
from that find
command. Is that possible? Any tips?
Thanks.
find
command?echo $(date "+%b %_d")
instead ofdate "+%b %_d"
find /mnt/data/project_data/web_collab/mailbox/*/sr_pdf/*.pdf -type f -ls
instead ofls /mnt/data/project_data/web_collab/mailbox/*/sr_pdf/*.pdf
?