Answer the question
In order to leave comments, you need to log in
Write to file via echo with hash?
If I write: echo addmodule>>/usr/file.conf
(conditionally), then it is recorded.
And what if I need to write not addmodule, but #addmodule, that is, with a hash #? Then it's gone. Doesn't record. How to be? I tried to put it in quotes, it didn't work.
Answer the question
In order to leave comments, you need to log in
You need to escape the character with a backslashecho \#addmodule>>./file.txt
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question