Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

grep search match

grep -rn regex_search folder_where_to_search
#Ex: search pattern in "." current folder (r) recursively
grep -rn pattern .
Comment

grep or match

$ grep "PATTERN1|PATTERN2" FILE
$ grep -E "PATTERN1|PATTERN2" FILE
$ grep -e PATTERN1 -e PATTERN2 FILE
$ egrep "PATTERN1|PATTERN2" FILE
Comment

PREVIOUS NEXT
Code Example
Shell :: committing on github 
Shell :: get name of files in directory 
Shell :: Running Graphical Programs on Windows Subsystem on Linux 
Shell :: dlib installation 
Shell :: dev/kvm not found 
Shell :: brew install rosetta 
Shell :: Git - add all changes files at same time for commit 
Shell :: run artisan queue --once loop 
Shell :: copy files from another branch git 
Shell :: install postman arch linux 
Shell :: replace main with another branch 
Shell :: installing docker compose on ec2 
Shell :: error installing cocoapods mac 
Shell :: install a file from internet with command prompt 
Shell :: folding at home bash 
Shell :: create enumerated folders termina 
Shell :: loop clear and ls lrt command line linux 
Shell :: bokura no kiseki wikipedia 
Php :: laravel model without timestamps 
Php :: install php8 on linux 
Php :: wp cron disable 
Php :: migrate specific table laravel 
Php :: how get the latest data in database in laravel 
Php :: date now php 
Php :: php time a script 
Php :: storage link laravel 
Php :: laravel running a specific migration on different path 
Php :: composer install ignore 
Php :: password match laravel 
Php :: php how to get am pm from a datetime 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =