I am trying to write a bash script that contains a function so when given a .tar, .tar.bz2, .tar.gz etc. file it uses tar with the rel
.tar
.tar.bz2
.tar.gz
if [[ $STR == *pattern* ]] then echo "It is the string!" else echo "It's not him!" fi
Works for me! GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)