Hi Everybody
Uning sed I need to replace:
"count(user) = 0" -o "uid = ftp" -n -o "gid = ftp"
by
"read only = no"
Thanks in advance.
Hi Everybody
Uning sed I need to replace:
"count(user) = 0" -o "uid = ftp" -n -o "gid = ftp"
by
"read only = no"
Thanks in advance.
I don't understand your question fully. Are you saying you want to
REPLACE this entire phrase:
"count(user) = 0" -o "uid = ftp" -n -o "gid = ftp" -n -b \
WITH this phrase:
"read only = no"
Thats corect cassj. See the edited post.
Thanks
Try:
sed 's/"count(user) = 0" -o "uid = ftp" -n -o "gid = ftp" -n -b \\/"read only = no"/'
Just escape the backslash.
Regards
Golden rules, think a bit before asking
sed 's/\("count(user) = 0" -o "uid = ftp" -n -o "gid = ftp" -n -b\)/"read only = no"/'
Thank Franklin for your help , I understand now where was the original problem(mistake )