I have a file which contains a line like this, and my sed command keeps failing.
grep "#wxBlk/JTwIZNXUim7HzzyCwkzzw#
I need to replace the zzw# at the end of the line with " $DAACFILE | grep "MSISDN :"
so the line should end up looking like
grep "#wxBlk/JTwIZNXUim7HzzyCwkzzw#" /testdir/testdir/testfile.txt | grep "MSISDN :"
The current code I have is
sed "s/zzw \#/\" "$DAACFILE" \| grep \"MSISDN :\"/" $TEMPDIR/gettracktest1
I think the problem is that $DAACFILE contains "/" characters as it is a full path. Can anyone help? Cheers