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

grep -v '#' input_filename > output_filename

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you grep recursively?

1120


What is the behavioural difference between cmp and diff commands?

1298


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

1226


What is the use of find command in unix?

1162


Differentiate cmp command from diff command.

1181


How do I search for a file in unix command?

1028


What are bash commands?

1177


What is the use of awk command in unix?

1140


What is the use of the command 'ls -x chapter[1-5]' ?

1226


What command is used to check the current users?

1141


What are grep patterns?

1098


How do you repeat a command in terminal?

1245


What is sed awk grep?

1145


What does the command ' $who | sort –logfile > newfile' do?

1286


How do I use nslookup?

1107