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

sed '/^#/ d'

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the behavioural difference between cmp and diff commands?

1234


What does the metacharacter mean?

1104


What is merge command in unix?

1461


How do I open a port?

1053


Who command in unix?

1104


Explain ‘library functions’ with respect to unix commands?

1135


What is the difference between awk and grep?

1179


how to sort the content of the file based on numeric values

1742


What command will change your prompt to myprompt?

1277


What do know about tee command and its usage?

1144


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

1169


How does the system know where one command ends and another begins?

2198


Differentiate cmp command from diff command.

1126


What is grep r?

1053


How do I clear my terminal history?

1108