rargs
rargs copied to clipboard
Escaping curly braces in command
Hello. First of all, thank you for writing this super useful utility.
Today, I wanted to run curl commands using rargs, with -w '%{http_code}' to change curl's output behavior. However, I just found that rargs is replacing the format string to '%'. I tried using '{{' or '{' instead of '{' but it did not work. Is this possible to escape curly braces in this case?
My workaround:
$ export FORMAT='%{http_code}\n'
$ pbpaste | rargs bash -c 'curl -w "$FORMAT" ...'