Horje
substring in shell script Code Example
substring in shell script
STR="birthday-091216-pics"
SUBSTR=$(echo $STR | cut -d'-' -f 2)
echo $SUBSTR
how to print substring in bash script
INPUT='someletters_12345_moreleters.ext'
SUBSTRING=$(echo $INPUT| cut -d'_' -f 2)
echo $SUBSTRING




Shell

Related
tar command Code Example tar command Code Example
git remove Untracked files Code Example git remove Untracked files Code Example
clear untracked files git Code Example clear untracked files git Code Example
shell break while loop Code Example shell break while loop Code Example
react testing using jest along with code coverage Code Example react testing using jest along with code coverage Code Example

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