Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

grep and

# EXAMPLE: displays any lines that contain either "include this string" or "this works too" 
egrep "include this string|this works too" *

# SYNTAX:
# egrep "<pattern-1>|<pattern-2>" *

# egrep is combined with the "|" character (pipeline: normally the shift alternative to the "" on the keyboard)
Comment

grep and

grep -E 'pattern1.*pattern2' filename
grep -E 'pattern1.*pattern2|pattern2.*pattern1' filename
Comment

PREVIOUS NEXT
Code Example
Shell :: linux show file line size 
Shell :: bash read file content 
Shell :: openssl serial number 
Shell :: gitattributes 
Shell :: push a branch with diffrent name 
Shell :: post webhook bash 
Shell :: ruby install for mac 
Shell :: boostrap install angular 
Shell :: how to learn cuda version 
Shell :: obs studio fedora 
Shell :: comprimir directorio linux 
Shell :: remi repo 
Shell :: sudoer sudo no password NOPASSWORD 
Shell :: remove gitignore files 
Shell :: spotify combo chercker 
Shell :: activate virtual environment in ubuntu 
Shell :: push docker image to docker hub 
Shell :: intel hd 4000 ubuntu driver 
Shell :: brew update package 
Shell :: mkdir multiple directories windows 
Shell :: nvm install 
Shell :: run mongodb on docker linux 
Shell :: create new file terminal 
Shell :: git branch from commit 
Shell :: install apexcharts 
Shell :: install automapper asp.net core mvc 
Shell :: move all files from one directory to another 
Shell :: unity download android sdk 
Shell :: add user centos 7 sudo 
Shell :: no source map sass 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =