Dear All,
Can anybody tell me how to predefind no. of selected rows
from a text file.

Answer Posted / junhua

awk 'NR <= n'

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does $0 mean in shell script?

548


How to redirect both standard output and standard error to the same location?

620


I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.

588


What does it mean to debug a script?

560


What is option in shell script?

550






How do I run a shell script in powershell?

547


What does egrep mean?

561


How do you know which shell I am using?

583


What is ms powershell?

577


Tell something about the super block in shell scripting?

563


What is bash shell command?

555


How important is shell scripting?

535


What is scripting autism?

692


How do I stop script errors?

565


What is meant by dos operating system?

567