mercredi 21 novembre 2018

Bash Script Compare and Run a Command

I have a shell script that gives me a txt file containing certain numbers. For instance, " 48 347 345 221 1029 3943 1245 7899 " . It only contains one line.

I want to trigger another shell script if one of those numbers exceeds 500. How can and compare the numbers and run the shell script? Thanks in advance

Aucun commentaire:

Enregistrer un commentaire