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?
How will you schedule a job that will run every month last day?(some months have 30 days,some 31 days,28,29 days)
What is meant by dos operating system?
Is shell scripting a programming language?
How do you know which shell I am using?
What are the two files of crontab command?
How do I run a shell script in powershell?
How do I open the shell prompt?
1.Write a script, which converts a number from binary to hexadecimal format or vice versa.
Explore about environment variables?
What is awk script?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?