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 / deepak

sed -e 's/^#//g' -e 's/#//g' input_filename > output_filename


Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between grep and grep?

1184


What does awk stand for?

1143


Write a command that will display files in the current directory, in a colored, long format.

1273


What is the use of tee command?

1233


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

1215


How do you grep a case insensitive?

1112


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

1448


Which command will print your home directory on screen?

1148


What is the use of the tee command?

1151


Why is awk called awk?

1136


What is the comma to show the space allocation of files?

1135


Are you in or at the office?

1171


Why is it called a shebang?

1245


What is the general format of unix command syntax?

2026


What do chmod, chown, chgrp commands do?

1345