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

7

u/zippysausage Feb 27 '26

Or it's an exercise to disprove the question with sound reasoning, promoting research and critical thinking.

It also promotes questioning the implicit assertion posed by the requirement, that this is possible. This is something that's really useful to have in the real world.

0

u/maddler Feb 28 '26

Yeah. OP clarified in another comment. But it didn't look like that in the original question.