I have the following code in shell.
It does not work. So I don't know what's my mistake I was wondering if someone could help me
echo $i | awk -F "," '{if(NF == 1) print "Exiting..." system("exit")}'
so $i is a parameter for example hi,hello. And if the number of fields is equal to 1, I'd like the program to exit.