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 is a boot block?
What are the default permissions of a file when it is created?
Hi All, Is it possible to create one file name only space or space in file name in UNIX and we can able to run that on Unix?
What is the crontab?
Is shell a scripting language?
What is shell chemistry?
What does sh mean?
How will you connect to a database server from linux?
What is a shell script? Can you name some of its advantages?
What are the 3 standard streams in linux?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
Is bash an operating system?