How would you print just the 25th line in a file using
smallest shell script?
Answer Posted / alok
awk -F"|" ' NR == 25 {print} ' emp.lst
in this file | is a field seprator
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Explain about non-login shell files?
How does path variable work?
How do you find out What is your shell?
How can you find out how long the system has been running?
How are shells born?
What does it mean to debug a script?
How to get the first line from a file using just the terminal?
What is web script?
What command needs to be used to take the backup?
What is the use of "$#" in shell scripting?
What are the advantages of shell script?
How to open a read-only file in the shell?
What makes c shell a more preferable option than the bourne shell?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What is the default shell of solaris?