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 |
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
If one dont know how to create a script then how he/she can use the QTP?
How will you list only the empty lines in a file (using grep)?
Dear All, Can anybody tell me how to predefind no. of selected rows from a text file.
Explain how you Automate your application using Shell scripting.
What are the different types of commonly used shells on a typical linux system?
c program to check whether all the directories in the path exists has read and write permission
What is the way to do multilevel if-else's in shell scripting?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
Explain about echo command?
What are the advantages of using shell scripts?
When you login to a c shell, which script would be run first?