$ VAR=
"Banana"
;
$ VAR=${VAR
#?};
$
echo
$VAR;
anana
from : https://bytefreaks.net/gnulinux/bash/remove-the-first-character-from-a-bash-variable
$ VAR=
"Banana"
;
$ VAR=${VAR
#?};
$
echo
$VAR;
anana
In case if you want to check whether file does not contain a specific string, you can do it as follows. if ! grep -q SomeString "$File...
No comments:
Post a Comment