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


Please Help Members By Posting Answers For Below Questions

Give some situations where typing error can destroy a program?

725


Please give me example of " at command , contrab command " how to use

2327


How does shell scripting work?

617


What is the purpose of scripting?

582


How will you emulate wc –l using awk?

913






What is bash used for?

577


What is subshell?

531


What is shell geeksforgeeks?

599


Explain about echo command?

625


What is bourne shell scripting?

533


What does echo $0 do?

586


what is tickets $ what low,medium,high priorite pls define time also

1723


What is awk in shell scripting?

555


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

560


What is echo $shell?

626