mercredi 9 décembre 2015

"if-command" line in terminal

I have the following question: I have have the following code which scans and counts the amount of wifis:

airport en1 -s |awk 'END{print NR--}'

Now I want to use make terminal open an audio file in certain cases example:

if x >10
  then open 1.mp3
else open 2.mp3

How can I do that?

Grateful for any help!

Aucun commentaire:

Enregistrer un commentaire