Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

grep if

if echo "40922|OPR MO 12345|OPR MO 12345|12345|202|local|LMNO" | grep -q "MO"
  then echo "FOUND"
  else echo "NOT FOUND"
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: how to check the list of all applications in ubuntu 
Shell :: git ignore added folder 
Shell :: throw exception powershell 
Shell :: delete git branch 
Shell :: npm -s flag 
Shell :: your repository has no remotes configured to push to 
Shell :: parquet tools install mac 
Shell :: list users on server 
Shell :: assigning permissions to folder and files in linux 
Shell :: open file explorer from cmd 
Shell :: CocoaPods could not find compatible versions for pod "razorpay_flutter" when running pod install 
Shell :: bash variable execute 
Shell :: -u flag in git command 
Shell :: import single table from mysql dump 
Shell :: gitignore not working 
Shell :: docker compose stdin_open 
Shell :: This is a GitLab CI configuration to build the project as a docker image 
Shell :: how to push local created commit to another branch in git 
Shell :: allow-unauthenticated not working 
Shell :: install bc command linux 
Shell :: ubuntu nvm 
Shell :: git rebase 
Shell :: how to check open vpn on ubuntu 
Shell :: sudo update-alternatives — install 
Shell :: update branch with master 
Shell :: install tensorflow from source ubuntu 18.04 
Shell :: hsdpa modem software for linux 
Shell :: how to solve the brightness problem on unbuntu 
Shell :: perl install Switch 
Shell :: symfony Unable to write in the "logs" directory (/var/www/html/var/log). 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =