Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

terminal bash grep word inside files directory

grep -nr 'yourString*' .
The dot at the end searches the current directory. Meaning for each parameter:

-n            Show relative line number in the file
'yourString*' String for search, followed by a wildcard character
-r            Recursively search subdirectories listed
.             Directory for search (current directory)
Comment

PREVIOUS NEXT
Code Example
Shell :: Docker - a way to give access to a host USB or serial device 
Shell :: delete file kali linux 
Shell :: remove file kali linux shell 
Shell :: makefile shell if 
Shell :: start docker api 
Shell :: embedded video doesnt play on gitjub pages 
Shell :: delete completed kubernetes pod 
Shell :: Automatically run program on Linux startup via rc.local 
Shell :: Bash script to authenticate machine users 
Shell :: how to take screenshot of the login screen on linux 
Shell :: linux get processor count 
Shell :: swap memory in ubuntu 
:: sudo apt-get remove 
Shell :: docker restart always 
Shell :: git set username and email 
Shell :: new-alias vi notepad 
Shell :: ssh into rpi 0 
Shell :: ubuntu 2022 theme 
Shell :: set swap space aws 
Shell :: pinch on linux 
:: chinese linux 
Shell ::  
Shell :: bash count occurrences of character in string 
Shell :: Ubuntu 22.04 acer no wifi interface 
Shell :: install exercism 
Shell :: android studio git upsh unable to read askpass response 
Shell :: Recipe to merge git 
Shell :: bulk folder creation by windows powershell 
Shell :: * Github. : [RUKS](https://github.com/muntazir-halim) 
:: git switch to specific branch name 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =