bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash shows an error message about unpaired quotes, but they are pair


From: Eduardo Bustamante
Subject: Re: bash shows an error message about unpaired quotes, but they are paired
Date: Mon, 26 Mar 2018 16:05:02 -0600

On Mon, Mar 26, 2018 at 1:54 PM,  <address@hidden> wrote:
[...]
> run 'sed -i "6a\find /srv/cowrie/log/ -mtime +7 -name \'cowrie.*\' -delete" 
> cowrietest'

That's not how you escape single quotes within single quotes. Read:
https://mywiki.wooledge.org/Quotes#Types_of_quoting

The proper way would be: run 'sed -i "6a\find /srv/cowrie/log/ -mtime
+7 -name '\''cowrie.*'\''...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]