<span>search for string in a directory<br />grep -l 'pressure_drop' * (searches current directory for 'pressure_drop' <br />-l (L) retrieves only filenames<br />-r recursive search<br /> <br />grep "searchstring" * (search all txt files in current directory)<br /><br /><br />more grep<br /><a href="http://txt.binnyva.com/tag/grep/">http://txt.binnyva.com/tag/grep/</a><br /></span>
This link has been bookmarked by 112 people . It was first bookmarked on 14 Jul 2008, by David Worrell.
-
19 Aug 13
-
27 Sep 11
-
13 Sep 11
-
18 May 11
-
28 Aug 10
-
31 May 10
-
18 Jan 10
-
02 Aug 09
-
05 May 09
-
04 Mar 09
-
Romana ChallansGlobal Regular Expression Print is a staple of every command-line user’s toolbox. As with find, it derives a lot of power from being combined with other tools and can increase your productivity significantly.
Following is a simple tutorial that will helpreference howto tutorial linux unix bash shell commands grep for:raverant2006 for:mrda for:eclair for:katykat for:holsz for:corman71
-
24 Nov 08
-
11 Nov 08
-
26 Aug 08
-
20 Aug 08
-
07 Aug 08
-
05 Aug 08
-
01 Aug 08
-
31 Jul 08
-
30 Jul 08
-
29 Jul 08
-
22 Jul 08
-
19 Jul 08
gialloporporaOttimo tutorial per iniziare (o ricominciare) con Grep.
Grep è un potente tool da riga di comando importato dall'ambiente Unix, che permette di cercare stringhe in file. -
18 Jul 08
-
Search JS files in this directory for "function"
-
-E options gives me extended regex
-
-o prints only the part that matches
-
-h suppresses printing of the file name
-
piping to sort
-
Count the number
-
DO NOT have
-
-
17 Jul 08
-
16 Jul 08
-
15 Jul 08
-
14 Jul 08
-
Ethan GardnerGlobal Regular Expression Print is a staple of every command-line user’s toolbox. As with find, it derives a lot of power from being combined with other tools and can increase your productivity significantly.
-
John Banburygrep is a beautiful tool
cheatsheet guide howto productivity linux reference software commands unix grep
Public Stiky Notes
grep -l 'pressure_drop' * (searches current directory for 'pressure_drop'
-l (L) retrieves only filenames
-r recursive search
grep "searchstring" * (search all txt files in current directory)
more grep
http://txt.binnyva.com/tag/grep/
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.