bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: count


From: Krem
Subject: Re: count
Date: Mon, 21 Dec 2015 08:53:55 -0700 (MST)

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

[Prev in Thread] Current Thread [Next in Thread]