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

Who command in unix operating system?

736


What is the difference between cat command and more command?

676


Can you explain a little bit about command substitution?

709


What is the use of tee command?

650


How to use grep command to list find the records of a file containing 10 different strings?

729






Describe the zip/unzip command using gzip.

707


Explain command to show the space allocation of files?

714


How do I search for a file in unix command?

634


What does pipe () return?

676


What is ‘ps’ command for?

721


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

1375


What is s and g in sed command?

649


What is unix command?

689


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

759


What is time_t?

684