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 / susanta polley

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

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is grep faster than awk?

999


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

1099


What are the commands in UNIX to list the files in a Directory?

1119


Why is grep called grep?

1239


Explain ‘system calls’ with respect to unix commands?

1053


Why is it called grep?

978


What command is used to check the current users?

1077


What is the difference between cat and more command?

1238


What are the dos commands?

1207


Is command prompt unix?

1106


What is the significance of the 'tee' command?

1146


How do I search a whole word in vim?

1142


What is the use of finger command?

1155


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1158


Explain mount and unmount command.

1154