Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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?

1004


How do I run a .sh file on mac?

1189


wats the deinitions for shell utility and filter?

2317


What is awk in shell scripting?

1026


Why are there shells on the beach?

1151


What is option in shell script?

1018


Determine the output of the following command: [ -z “” ] && echo 0 || echo 1

997


Explain how you Automate your application using Shell scripting.

2318


What are the four fundamental components of every file system on linux?

1683


How to print the first array element?

1038


What is the best scripting language?

1032


What is the command to find out users on the system?

976


How to debug the problems encountered in the shell script/program?

1147


Which is better perl or shell scripting?

991


What is a command line shell?

1052