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 is bash used for?

577


How will you print the login names of all users on a system?

573


What language is used in terminal?

558


What is a scripting language simple definition?

555


How to write a function?

592






Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

699


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

559


What is the first line in a shell script?

555


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

3605


How to calculate the number of passed arguments?

554


Write down the syntax for all the loops in shell scripting.

660


Print the 10th line without using tail and head command.

1674


How are shells born?

556


How to pass an argument to a script?

594


What is scripting used for?

560