On Fri, Dec 31, 2010 at 4:48 AM, Marko Vojinovic wrote:
> On Thursday 30 December 2010 23:35:43 Bob McGowan wrote:
> > On 12/30/2010 03:17 PM, Thomas Cameron wrote:
> > > On 12/30/2010 12:34 PM, S Mathias wrote:
> > >> I just can't google for it:
> > >>
> > >> I'm searching for a "bash" "one line
On Thu, 2010-12-30 at 10:34 -0800, S Mathias wrote:
> I just can't google for it:
>
> I'm searching for a "bash" "one liner" (awk, perl, or anything) for this:
>
> there are text files, in several directories:
>
> mkdir one
> mkdir two
> mkdir three
>
> echo "word1 word2 word3" > one/asf.txt
On 12/30/2010 03:17 PM, Thomas Cameron wrote:
> On 12/30/2010 12:34 PM, S Mathias wrote:
>> I just can't google for it:
>>
>> I'm searching for a "bash" "one liner" (awk, perl, or anything) for this:
>>
>> there are text files, in several directories:
>>
<<--deleted details-->>
>>
>
> Does your pr
> echo "asdf, word2"> three/werdf.txt
> echo "word7, word8 word9 word10"> three/qwerb erfsdgdsg.txt
> echo "word4 word3"> three/web erg as.txt
>
> so it does the magic* "recursively":
>
> $ SOMEMAGIC> output.txt
> cat output
On 12/30/2010 02:20 PM, Aaron Konstam wrote:
> On Thu, 2010-12-30 at 10:34 -0800, S Mathias wrote:
>> > I just can't google for it:
>> >
>> > I'm searching for a "bash" "one liner" (awk, perl, or anything) for this:
>> >
> Attached is a python program that counts the number of words in a file.
>
On Thu, 2010-12-30 at 10:34 -0800, S Mathias wrote:
> I just can't google for it:
>
> I'm searching for a "bash" "one liner" (awk, perl, or anything) for this:
>
Attached is a python program that counts the number of words in a file.
This could easily be slightly altered and combined with find t
On Thu, 2010-12-30 at 10:34 -0800, S Mathias wrote:
> echo "word2 word4, word5" > one/asfcxv saf.txt
Are you sure that's what you mean? It's not wrong, but it's unusual.
poc
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedorapr
On 12/30/2010 11:34 AM, S Mathias wrote:
> mkdir one
> mkdir two
> mkdir three
>
> echo "word1 word2 word3"> one/asf.txt
> echo "word2 word4, word5"> one/asfcxv saf.txt
> echo "word1. word2"> one/dsgsdg.txt
>
> echo "word6, word3!"> two/sdgsd dsf.txt
> echo "word6"> two/ergd.txt
>
> echo "asdf
echo "word4 word3" > three/web erg as.txt
so it does the magic* "recursively":
$ SOMEMAGIC > output.txt
cat output.txt
asdf 1
word1 2
word2 4
word3 3
word4 2
word5 1
word6 2
word7 1
word8 1
word9 1
word10 1
$
*recursively count the words occurrence in the text files