what is the cmd to remove the comment lines from a file and
to display the original text without comments?
thanks in advance......
Answers were Sorted based on User's Feedback
Answer / susanta polley
sed -e 's/^#//g' input_filename > output_filename
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / deepak
sed -e 's/^#//g' -e 's/#//g' input_filename > output_filename
| Is This Answer Correct ? | 6 Yes | 5 No |
What does touch command do in unix?
what is the use of "test" command in unix?
What do you mean by zambie process?
what these two commands prints "echo test","cat test"?
What is the pipe command?
what is the difference between KILL and KILL -9?
5 Answers Informatica, Nutanix,
What is difference between grep and find command in unix?
What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where we use this commnands?
Write a command to find all of the files which have been accessed within the last 30 days.
What is sed awk grep?
What does the command '$ls | wc –l > file1' do?
what is the default signal kill in unix?