Difference between revisions of "Command Line Useful Commands"

From Interaction Station Wiki
Jump to navigation Jump to search
(Created page with "== Grep == grep string_to_search path -l It outputs the file names, no the text in that line")
 
Line 4: Line 4:
  
 
  -l It outputs the file names, no the text in that line
 
  -l It outputs the file names, no the text in that line
 +
 +
 +
== Wc ==
 +
 +
Command for counting
 +
 +
grep string_to_search path | wc -l
 +
 +
It counts how many lines in that files/s have that string

Revision as of 19:37, 28 June 2019

Grep

grep string_to_search path
-l It outputs the file names, no the text in that line


Wc

Command for counting
grep string_to_search path | wc -l 

It counts how many lines in that files/s have that string