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...

Write a command delete all line except first line?

Answer Posted / rajesh

awk '!1 d {print $0}'

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of ARGIND?

1376


What are Trigonometric Functions in AWK?

1265


How to generate random numbers in AWK?

1320


What are the Autoincrement and Autodecrement Operators?

1247


What are Conditional expressions in AWK?

1214


What is the use of ARGV ?

1414


What is the use of string function substr(string,position,max) in AWK?

1335


What are Dynamic Variables?

1273


What is the use of string function sub(regex,replacement)?

1426


How do you Explicit File output?

1192


Write a command to print the second and third line of a file without using nr?

791


What is the use of PRINTF?

1279


What are Regular Expressions in AWK?

1201


What is the use of FIELDWIDTHS?

1421


How to display even number of records into one file and odd number of records into another file?

833