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 updatedb?

580


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

949


What is the functionality of a top command?

618


What happens when we execute a unix command?

593


What is the significance of the 'tee' command?

594






What is the difference between awk and grep?

555


What does the command '$ls | wc –l > file1' do?

676


hw will u use awk in replacing cahrs and files

2722


What does #!/ Bin sh do?

582


What is the first character of the output in ls l command?

627


What is $0 bash?

641


What is the behavioural difference between cmp and diff commands?

670


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

618


What is the command to view process running?

568


What are file commands?

646