Skip to content
Tavis Ormandy edited this page Aug 23, 2015 · 2 revisions
  • Q. How can I strip off the prefixes from a prefixed array?

  • A. You can use substitution, like ${values[*]##*:}

  • Q: Why doesn't this work as expected?

$ dlcall printf "%s\n" "Hello, World"
Hello, World\n
  • A: Bash strings are not C string literals. If you want C-like escape sequences you can do something like this:
$ dlcall printf $'%s\n' "Hello, World"
Hello, World
Clone this wiki locally