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
What is bash used for?
How will you print the login names of all users on a system?
What language is used in terminal?
What is a scripting language simple definition?
How to write a function?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
What is the first line in a shell script?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
How to calculate the number of passed arguments?
Write down the syntax for all the loops in shell scripting.
Print the 10th line without using tail and head command.
How are shells born?
How to pass an argument to a script?
What is scripting used for?