Here is a script that,when executed, will draw a christmas tree using the characters choosen by the user on the linux terminal.
The script will prompt the user to enter the character using which the tree has to be drawn. Then it will prompt the user to enter two characters that will be used to decorate the tree. The last input it will ask for is the character using which the base of the tree has to be drawn.
chritstmas_tree.sh
The script will prompt the user to enter the character using which the tree has to be drawn. Then it will prompt the user to enter two characters that will be used to decorate the tree. The last input it will ask for is the character using which the base of the tree has to be drawn.
chritstmas_tree.sh
Informative blog...Nice post..
ReplyDeleteI get
ReplyDeletechritstmas_tree.sh: 14: chritstmas_tree.sh: Syntax error: Bad for loop variable
which shell are you running the script in ?
DeleteAnonymous: ./christmass_tree.sh
ReplyDeleteHow about this: http://smackerelofopinion.blogspot.co.uk/2012/12/and-now-something-seasonal.html
ReplyDeleteInteresting post sir ..Keep posting ..
ReplyDelete