0

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?

1
  • 1
    Can you add example input and output at least, so we know what we're to be helping you deal with?CommentedOct 4, 2014 at 4:45

1 Answer 1

2

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 
1

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.