Hi all,

Thank you very much for providing me more information, I am getting more
confused. but learning more.

I tried this one, but failed if the folder has more than one file name (eg
*.csv) in that folder.

 find . -maxdepth 2 -mindepth 2 -type f -name '*.csv' -o -name '*.txt' |\
 egrep '^\./[0-9]' |\
 xargs awk 'ENDFILE {print FILENAME "\t" FNR;}' |\
 sed -r 's|^./||;s|/|\t|'   |\
 xargs -L 1 echo -e "${PWD##*/}\t"???








--
View this message in context: 
http://gnu-bash.2382.n7.nabble.com/count-tp16675p16699.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.

Reply via email to