How would you print just the 25th line in a file using
smallest shell script?
Answers were Sorted based on User's Feedback
Answer / alok
awk -F"|" ' NR == 25 {print} ' emp.lst
in this file | is a field seprator
| Is This Answer Correct ? | 0 Yes | 4 No |
1.Write a script, which converts a number from binary to hexadecimal format or vice versa.
What are the additional egrep symbols?
What is the command for " how many shell is running in your system or how many shell supported by your system " ?.
Explore about environment variables?
If you have a string "one two three", which shell command would you use to extract the strings?
How do I edit a .sh file?
What is the use of a shebang line?
How do I open the shell in cmd?
What is ms powershell?
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"
How Connect to a Database in Shell Programming?
Print the 10th line without using tail and head command.