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 difference between bash and shell?
What is $1 in shell scripting?
write a shell script to find the largest number from 3 given numbers.
What is the command to find out today's date?
What is ms powershell?
How do you rename the files(*.sh) with file names containing space in it?for example "interview question.sh" needs to rename to "interview-question.sh". Appreciate your inputs.Thanks.
What is the basic difference you find between a shell script and perl?
Dear All, Can anybody tell me how to predefind no. of selected rows from a text file.
Can we run shell script in windows?
What are the four fundamental components of every file system on linux?
Explain about debugging?
Which shell is the best?