execute multiple commands if a regex test fail
grep newroot /etc/passwd || { echo cmd1; echo cmd2; }
negation regex inside test condition
[[ ! $1 =~ [0-9] ]] && echo Param isn't a number && exit
output file content without line starting with root string
grep ^[^root] /etc/passwd