Your Only Destination To Empower Your Computer Programing Knowledge. Sky is not so high, You can Touch it if You Try

Script to show use of for loop

echo Enter any sentence
read a
echo
echo Words in given sentence are:-
for i in $a
do
echo $i
done
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"for" 8L, 94C


Output:-

Enter any sentence
Sky is not so high you can touch it if you try

Words in given sentence are:-
Sky
is
not
so
high
you
can
touch
it
if
you
try

No comments:

Post a Comment