Skip to content
March 16, 2015 / doganay

FOR NUMBER and ALPHA RANGE USAGE in SHELL

echo {1..4}
1 2 3 4

echo {4..1}
4 3 2 1

Use just echo to list a-z and A-Z and vice-versa
echo {a..z}
a b c d e f g h i j k l m n o p q r s t u v w x y z
echo {z..a}
z y x w v u t s r q p o n m l k j i h g f e d c b a
echo {A..Z}
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
echo {Z..A}
Z Y X W V U T S R Q P O N M L K J I H G F E D C B A

list number 1 to 10
for i in $(seq 1 10);do echo $i;done
1
2
3
4
5
6
7
8
9
10
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: