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

What is the use of the tee command?

1054


Which command will print your home directory on screen?

1031


What does awk stand for?

1033


How do I use nslookup?

1036


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

1336


How do I use grep to find a file?

1058


Name the various commands that are used for the user information in unix.

1020


What is the use of finger command?

1138


Explain command to display different lines that are found when compare two files?

1106


Why is it called grep?

970


What is command substitution?

1266


What is ‘ps’ command for?

1134


What is the use of cut command in unix?

1293


What is the use of sed command in unix?

1139


What is grep short for?

998