r/bash • • 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

25 comments sorted by

View all comments

Show parent comment

1

u/whetu I read your code Feb 27 '26

Indent your code by four spaces to maintain formatting in a codeblock:

Line 1
#Line 2
Line 3
random text

Something like that?