Standard Output/Error For Loop Script

#!/bin/bash for x in `seq 1 10` do if [ "$x" -lt 5 ]; then echo $x is less than 5 else echo "$x is greater than or equal to 5" >&2 fi done
This small script is used as a submission for the Torque and Maui sanity check

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.