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

what is the cmd to remove the comment lines from a file and
to display the original text without comments?
thanks in advance......

Answer Posted / giri

grep -v '#' input_filename > output_filename

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the general commands in using unix os for a beginner?

1097


How many unix commands are there?

1109


Which command is used to delete all files in the current directory and all its sub-directories?

1217


What is the function of grep command in unix?

1114


What is the use of tee command?

1090


What is awk used for?

1088


How to display no of records in oracle using unix command?

1120


What does awk stand for?

1041


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1348


What is the general format of unix command syntax?

1818


Explain mount and unmount command.

1154


Which command is used to kill the last background job?

1299


What does sed command do in unix?

1129


How can you see the command line history?

1087


How do I find previous commands in unix?

1137