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
How are shells born?
What are the various stages of a linux process it passes through?
What is .sh file in mac?
What are the different types of shell scripting?
What is the first line in every perl script called?
Why do we use shell scripting?
How does ls command work?
What exactly is a shell?
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again
Can shell script run on windows?
How do I stop script errors?
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 how you Automate your application using Shell scripting.
What is the conditional statement in shell scripting?
How to use arguments in a script?