Check out a userscript which highlights deleted posts.
GitHub
79327511
Date:
2025-01-03 19:48:00
Score:
1
Natty:
Report link
This solution should address your requirements:
sed -Ei "s/^([[:space:]]*)([^#]*\b$a\b)/\1#\2/" file
Commented lines are ignored,
The indentation is preserved,
The value present in the variable $a is correctly matched.
Reasons:
Low length (0.5):
Has code block (-0.5):
Low reputation (1):
Posted by:
Thibaut