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 |
Given a file find the count of lines containing the word "abc".
What are types of shells?
What language is shell scripting?
What does chmod do?
What is the best scripting language?
Can you write a script to portray how set –x works?
How does shell scripting work?
What is sed in shell script?
What does echo mean in scripting?
Is shell scripting difficult?
What are the Different types of shells?
Why do we write bin bash in shell scripts?