arcticpuppy
Technical User
I am parsing a html file that has special characters for &, !, etc and I would like to convert these automatically for ascii output(tab delimeted file) any hints ?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
BEGIN {
nprintable="@#!$%^&-_+=?:;"
printable="\t"
z = split(nprintable,arr,"")
}
{
for (i=1 ; i <= z ; i++) {
p = gsub(arr[i],printable,$0)
print p
}
}
while( (p = index($0,badchar)) > 0) {
$0 = substr($0,1,(p - 1)) printable substr($0,(p + 1),length($0) - (p + 1))
}