Horje
find a string contain in another string Code Example
find a string contain in another string
#!/bin/bash

STR='GNU/Linux is an operating system'
SUB='Linux'
if [[ "$STR" == *"$SUB"* ]]; then
  echo "It's there."
fi
Source: linuxize.com




Shell

Related
apple m1 pod install issue Code Example apple m1 pod install issue Code Example
conda create environment from yml Code Example conda create environment from yml Code Example
"xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory Code Example "xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory Code Example
bobrossquotes terminal Code Example bobrossquotes terminal Code Example
how to rename many files at once linux Code Example how to rename many files at once linux Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
14