Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

partial substring comparison bash shell script

string='My long string'
if [[ $string == *"My long"* ]]; then
  echo "It's there!"
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: linux disk usage in human readable format 
Shell :: cpickle 
Shell :: install specific version pacakge go 
Shell :: grep end of line csh 
Shell :: ubuntu tftp server 
Shell :: xampp has no control panel in linux 
Shell :: ubuntu custuom boot iso /etc/grub.d/ 
Shell :: Terraform to upgrade modules and plugins 
Shell :: wingpersonal linux mint 
Shell :: Additional UART in u-boot 
Shell :: linux mount lvm 
Shell :: ahk get command line 
Shell :: install veracrypt on mac 
Shell :: PoweShell PingSweep 
Shell :: How install CoolTerm on Linux? 
Shell :: gnome terminal keep open 
Shell :: docker secrets max lenght 
Shell :: hadoop hive get time from timestamp 
Shell :: powershell command to change minimum password length 
Shell :: motioneyeos terminal setup 
Shell :: how to kill your pc 
Shell :: debian build clean 
Shell :: how to install ruby on rails with curl 
Shell :: grep third line after match 
Shell :: rubocop gem install specific version 
Shell :: install bc command mac 
Shell :: how to change current cluster config 
Shell :: upload package to gitlab package registry 
Shell :: create a docker-compose symbolic link to /usr/bin 
Shell :: unset git commit encoding 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =