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 is grep command in unix with examples?

604


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

683


What is the use of cut command in unix?

684


What does touch command do in unix?

719


Explain command to view process running?

609






What is the pipe command?

572


Why is it called a shebang?

566


Explain command to show the space allocation of files?

625


What are file commands?

646


What is the significance of the 'tee' command?

594


What does 'mkdir' command do in UNIX?

654


What are filter commands in unix?

547


What is the comma to show the space allocation of files?

556


How do you grep recursively?

549


How do you repeat a command in terminal?

587