Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

read string by string in file in linux

grep 'word' filename
grep 'word' file1 file2 file3
grep 'string1 string2'  filename
cat otherfile | grep 'something'
command | grep 'something'
command option1 | grep 'data'
grep --color 'data' fileName
Source by www.howtoforge.com #
 
PREVIOUS NEXT
Tagged: #read #string #string #file #linux
ADD COMMENT
Topic
Name
3+3 =