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 |
How will you schedule a job that will run every month last day?(some months have 30 days,some 31 days,28,29 days)
How to print the first array element?
How do I run a powershell script?
What makes c shell a more preferable option than the bourne shell?
How to get script name inside a script?
How to find all the files modified in less than 3 days and save the record in a text file?
why did you apply to shell
What is the syntax of "expr" command?
Can we run shell script in windows?
What does egrep mean?
What is an sh file?
wats the deinitions for shell utility and filter?