Following on the other couple of posts this week,
I have decided to add this one as well, just to show the many ways you can do this.
MacBook-Air:~ $ sed -i '/^#/d' test.txt
If you are on MacOS you have to do it slightly different, this is below.
MacBook-Air:~ $ sed -i '' '/^#/d' test.txt
Again, like before simple and easy, hope this can help you out as well. Do you have any more suggestions or tips like this, please get in contact or leave a comment below.
I am always interested in feedback so please feel free to add any comments, or you can mail me here. If you would like to submit a quick tip with full credit and links back to your site then also feel free to contact me.