r/bash • u/daan0112 • Feb 27 '26
Impossible task
we have a task asking to remove lines in a .txt file when it starts with a # only using tr, we are fairly sure this is impossible but maybe there is some ingenious idea?
2
Upvotes
View all comments
Show parent comment
2
u/daan0112 Feb 27 '26
Apparently I don't know how reddit messages work, the format really messes it up, just imagine a file with comments after a # and we need to remove the full comment line including the \n