Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Shell :: install app in kali linux 
Shell :: golang live reload 
Shell :: brew install node sass 
Shell :: git stash one file 
Shell :: ubuntu see date of last modification to file 
Shell :: how to remove git commit history 
Shell :: unix get epoch in miliseconds shell 
Shell :: powershell replace and rename file name 
Shell :: sh or bash validate if file no exist 
Shell :: create virtualenv for python project 
Shell :: mac Running setup.py install for pyodbc did not run successfully. 
Shell :: if command has output bash 
Shell :: bash copy directory and all contents 
Shell :: undo git commit and keep changes 
Shell :: enable apache2 site 
Shell :: linux recover deleted file 
Shell :: vagrant box remove version 
Shell :: vscode restart window 
Shell :: install polar linux 
Shell :: install android studio 
Shell :: appimage 
Shell :: running localhost check in linux terminal 
Shell :: change git repository 
Shell :: set keyboard azerty linux 
Shell :: how to ignore files in git 
Shell :: macbook gestures stopped working 
Shell :: laravel new project in install 
Shell :: create repository, commit, and push 
Shell :: ubuntu vs kali linux 
Shell :: git checkout branch 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =