1

What I am trying to execute from my bash script:

redis-cli srem myset "abc\x06def"

\x06 part seems to be ignored.

OS is Ubuntu 14.04 LTS and LANG=en_US.UTF-8, if these have anything to do with the problem.

previous_developer
  • 10,579
  • 6
  • 41
  • 66

1 Answers1

2

With bash I suggest:

redis-cli srem myset "abc"$'\x06'"def"

For checking the existence:

echo "abc"$'\x06'"def" | hexdump -C

Output:

00000000  61 62 63 06 64 65 66 0a                           |abc.def.|
00000008
Cyrus
  • 84,225
  • 14
  • 89
  • 153