This is my script
if [[ ! $url == *.txt ]]thenexitfi
I have also tried:
if [[ ! "$url" == *.txt ]]thenexitfi
and:
if [[ "$url" !== *.txt ]]thenexitfi
But even though $url does contain *.txt it still exits?
$url
*.txt
exit
Aucun commentaire:
Enregistrer un commentaire