Post #1949739
2026-05-03 12:04 UTC
@datn @kamstrup
I did some research and learned that the double dash delimiter functions as an options terminator. The usage examples I found was e.g. deleting files starting with `-`:
`rm -- -r`
Could you show an example how the double dash delimiter can improve usage of regex?
Replies (2)
-
@CppGuy@infosec.space 2026-05-04 19:05
@elnecesario @datn @kamstrup Well, suppose you want to grep a file called -r. The command you need is grep abcxyz -- -r
-
@synlogic4242@social.vivaldi.net 2026-05-03 18:05
@elnecesario @datn @kamstrup rm: the worst possible Unix command to ever get the arguments wrong. lol