After grep
line with AAA/BBB/CCC
but the output file consists only the line as AAA"& #x5c;"BBB"& #x5c;"CCC
..
How do I fix this?
It looks like your output is in some way encoded. You can try to pipe the output from grep
through sed
, it that is the only sequence you have to change:
echo 'AAA"& #x5c;"BBB"& #x5c;"CCC' | sed 's/"& #x5c;"/\//g'
will give you
AAA/BBB/CCC
\
represents backslash \
NOT normal slash /
which would be /
.CommentedOct 4, 2014 at 7:02