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: Sun, 20 Dec 2015 12:21:32 -0700 (MST)


Hi John,

Thank you very much  and seems working.
I  have a bit modified and still needs some more help.

1. The files that I am looking for are pretty much the same file name in all
folders (*txt  and *csv).
     I want generate two files (one *txt and the other *csv). How  do i
modify the basename?

2. I have noticed that some  folders (eg folder1) may have another subfolder
within it and i don't want  the script to go in  that subfolder. Is that
possible to do that?




find . -type f | while read i;do echo -e "$(dirname ${i}}} | cut -b 3-)
$(basename ${i}) $(wc -l ${i})" ;done | cut -d " " -f 1,2,3




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



reply via email to

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