I have following strings in input.txt file.
Running isn't running is running Stopped stopped Aborted aborted
Here I would need to match everything except "Running" and "is running". So far I have done below but it seems to be printing "Running" and "is running" as well. Can some help ?
exec < input.txt while read line do if [[ $line =~ [Aa]borted || [Ss]topped || isn*t ]]; then echo "$line" else echo "FINE" fi done
Aucun commentaire:
Enregistrer un commentaire