tags:

views:

50

answers:

2

tel me the answer the above question

A: 

Why do you need to display your name 10 times ? This question seems incomplete. The command in Unix to display your user name is "whoami"

spyder
A: 
COUNT=0
I=10  # How many times display the $NAME
NAME=$USER  # Your name
while [ $COUNT -lt $I ]; do
    echo $NAME;
    COUNT="`expr $COUNT + 1`";
done
Artur Gaspar