hi i have log :
i want remove some char become like this:
anybody can help me ?
hi i have log :
i want remove some char become like this:
anybody can help me ?
cat file | sed "s:'TBCD::g"
i think that command only can remove this 'TBCD
how about this line.. " 0F'TBCD 19 " ??
i mean the column 1 2 3 there are a bit different in the result
try:
sed "s/\(0F\|F\)\?'TBCD//g" infile
-or-
sed -r "s/(0F|F)?'TBCD//g" infile
how about the "19" in column 3 ??
cut -c1-15,22-37,44,47-56,61-74 infile
You can also do it with sed but since you need to remove characters at fixed positions cut is the more obvious choice IMO.
sed 's/..TBCD//1;s/...TBCD 19/ /1;s/.TBCD//g' infile
gawk '{gsub(/\047TBCD/,"");gsub(/^19/,"",$3)}{print}' file
Have you tried your code and compared the results?