You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same goes for $. Also, it appears that sd cannot handle - as the first char of a string and it cannot be conveniently escaped either.
echo -e "1\n2\n3" | sd "$" "-suffix"
error: Found argument '-u' which wasn't expected, or isn't valid in this context
USAGE:
sd <find> <replace-with> --string-mode
For more information try --help
Promising stuff with the benchmarks against sed, but it seems like the project is archived.
The - is kind of expected, although a bit unintuitive. The common way for unix cli tools to escape positional arguments that happen to start with a - is to stop parsing flags altogether after --. This is likely a GNU invention.
The trailing newline is a posix standard, which the normal posix tools rightfully ignores.
sd
however seems not to.Version:
sd 0.7.6
The text was updated successfully, but these errors were encountered: