I tried to use SED and TR to remove unwanted characters form file existing on IFS using STRQSH.
I've found that sed doesn't work for regular expressions and for
Examples
1.
Result should be equal ='??'
but
It is OK.
2.
SED change CRLF to LF if we use code like
if in source we have CRLF in result we found LF
I could not find solution for such behaviour.
3.
SED ignore characters like xA0 in source file.
Even if we use
where source includes x'A0' in result we still have x'A0'
For SED from PHASE it is a little be better (pkt 1 works, 2,3 does not)
For TR similar story.
It seems be dissaster.
Do you have any idea how I should solve above problems?
I've found that sed doesn't work for regular expressions and for
Examples
1.
Code:
echo 'AB' | sed 's/[AB]/?/g' AB
but
Code:
echo 'AB' | sed 's/A/?/g' ?B
2.
SED change CRLF to LF if we use code like
Code:
sed -C 1250 's/[^[[:alnum:]\r\n]]/?/g' source.txt > result.txt
I could not find solution for such behaviour.
3.
SED ignore characters like xA0 in source file.
Even if we use
Code:
sed -C 1250 's/[^[[:alnum:]\r\n]]/?/g' source.txt > result.txt
For SED from PHASE it is a little be better (pkt 1 works, 2,3 does not)
For TR similar story.
It seems be dissaster.
Do you have any idea how I should solve above problems?
Comment