26
2
I'm reading a lot of documentation on sed, and am still stumped on my particular use case.
I want to replace this line in a conf file with my own line:
Replace this line:
#maxmemory <bytes>with:
maxmemory 26gb
This is what I tried:
sed s/maxmemory.*bytes.*/maxmemory 26gb/ /etc/redis/redis.conf
I get the error:
sed: -e expression #1, char 30: unterminated `s' command
Which stumps me because I don't know what that means. So my question is:
How can I accomplish what I want? What does that error mean? (so I can learn from it)
1It's not
sed
that does this. It's the shell that does this. – JdeBP – 2014-03-02T02:08:44.563you're right, of course, thanks for the heads up :) – Sxilderik – 2014-03-02T08:29:41.047