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
Is powershell a bash?
How to get the 3rd element/column from each line from a file?
Write a script to print the first 10 elements of fibonacci series.
What are the different communication commands available in the shell?
What does $0 mean in shell script?
What is shell and shell script?
How does ls command work?
Why do we use shell scripting?
What is a shell in operating system?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
What are the advantages of shell script?
How to debug the problems encountered in the shell script/program?
How do you find out What is your shell?
What language is bash?
Can you write a script to portray how set –x works?