dorgan | is there a way i can find out how many lines in a file contain a certain string? | 18:37 |
---|---|---|
raubvogel | dorgan: would wc do the trick for you? | 19:15 |
dorgan | yeah thats what i ended up using | 19:15 |
dorgan | cat | grep | wc -l | 19:15 |
dorgan | :) | 19:16 |
raubvogel | Now you have to do that in perl ;) | 19:16 |
mhall119 | perl -e 'my $count = 0; while (my $line = <STDIN>) { $count++ if $line =~ s/pattern/; } print $count;' | 20:20 |
mhall119 | ^^ not verified | 20:20 |
moha85 | Hello everybody, I don't speak english well! So I have a probleme: I have windows 7 in my pc and I installed ubuntu 12.04. So when I start the computer I don't see the windows partition in the grub menu. I need help, PLEASE! | 21:24 |
balloons | moha85, bah.. he left | 22:46 |
balloons | sudo update-grub ... | 22:46 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!