I have lines with a single : and a\' in them that I want to get rid of. I want to use awk for this. I\'ve tried using:
:
\'
awk
tr is made for this purpose
tr
echo test\'\'\'\':::string | tr -d \': teststring $ echo test\'\'\'\':::string | awk '{gsub(/[:\47]*/,"");print $0}' teststring