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 |
c program to check whether all the directories in the path exists has read and write permission
Write a shell script in Linux to shift all characters in a file forward by five characters. (Thus “a” becomes “f’”).
2 Answers Ignou, Tripura Info,
What are the different shells available?
if i have 2 files file1 and file2.... file1 contains 2 columns like b a 11 aa 12 as 13 ad 15 ag 11 ar 13 ah 15 ak file2 contains b c 10 ds 11 at 15 gh 15 jk 13 iu 11 fg 13 yy can any 1 give me the program to display in this way? a b c aa 11 at ar 11 fg ad 13 iu ah 13 yy ag 15 gh ak 15 jk
What is eval in shell script?
How to handle the delimiter unit seperator in Unix
Is scripting and coding the same thing?
Explain about sourcing commands?
What is the difference between running a script as ./scriptname.sh and sh scriptname.sh
Explain about login shell?
What is sed in shell script?
How many fields are present in a crontab file and what does each field specify?