linux.los.ro


Linux Operating System

Aparitii cuvand in fisier

Totul despre C/C++, Perl, PHP, Python, Ruby, Bash Scripts, sau alte limbaje sub Linux

Aparitii cuvand in fisier

Postby CrackerX » Tue Oct 08, 2013 10:25 am

Am de facut un script in care, printre altele, trebuie sa numar de cate ori apare un cuvant intr-un fisier. Ce comanda pot folosi?
CrackerX
 
Posts: 3
Joined: Mon Jul 01, 2013 2:31 pm

Re: Aparitii cuvand in fisier

Postby NaikonutZ » Tue Oct 08, 2013 10:26 am

Code: Select all
grep -o "string" fisier | wc -w
NaikonutZ
 
Posts: 3
Joined: Mon Jun 17, 2013 4:32 pm


Return to Programare / Scripturi

Who is online

Users browsing this forum: No registered users and 1 guest

cron