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

sed '/^#/d' filename

Is This Answer Correct ?    9 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does this command do,"$more readme.txt“?

1126


Who command in unix operating system?

1103


Describe the usage and functionality of the command rm –r * in unix?

2022


What is awk good for?

1109


What is .sh file?

1134


What is the difference between cat command and more command?

1153


What is the use of tee command?

1105


What are the differences among a system call, a library function, and a unix command?

1167


How do I find previous commands in unix?

1146


What do chgrp command do?

1165


How do you grep recursively?

1076


Explain command to show the space allocation of files?

1095


Which command is used to find whether the system is 32 bit or 64 bit?

1098


What does #!/ Bin sh do?

1041


What is {} in find command?

1073