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 |
write a shell script to find the largest number from 3 given numbers.
What is the difference between break and continue commands?
How do I run a bin bash script?
What is sed in shell script?
How would you print just the 25th line in a file using smallest shell script?
what is the difference between sh & bash shell?
Is shell scripting a language?
1.Write a script, which converts a number from binary to hexadecimal format or vice versa.
What is the first line in every perl script called?
How to print all the arguments provided to the script?
What is path in shell script?
How will I insert a line "abcdef" at every 100th line of a file?