Create a bash shell script that reads a line from the user
consisting of 5 words and then prints them out in reverse
order. Name this script "reverse.sh"
Answer / priyanka joshi
read line;
echo $line | awk '{ for ( i = NF; i > 0; i--) print $i}' |
tr "\n" " "
| Is This Answer Correct ? | 5 Yes | 5 No |
What are the different commands available to check the disk usage?
What is bash used for?
what are bootlevel in linux?which level is booting by default.
If one dont know how to create a script then how he/she can use the QTP?
How can I send a mail with a compressed file as an attachment?
how to delete all the files with extension .dat rom a directory tree from root to third level in a single unix command?
What language is bash?
write a shell script to identify the given string is palindrome or not?
17 Answers CTS, HP, IBM, InfoEst, Wipro,
What is the use of echo in shell script?
shell script for reverse the string
What is the need of including script interpreter in your shell script?
Explain about debugging?