Friday, August 24, 2012

How can you print a range of numbers or letters in Shell Scripting?

#!/bin/sh -f

echo {a..z}

or

#!/bin/sh -f

for n in {0..5}
do
 echo $n
done

No comments :