tr - translating to ascii 31 (unit separator) -


i have csv file print in file replacing comma non printable ascii 31 unit separator. trying this:

 echo ${out} | tr ',' '\31' > ${in} 

i use vim editor , know in vim should see ^_ if tr command successfull, unfortunatelly see ^y out there suggest solution?

the correct way is:

echo ${out} | tr ',' '\037' > ${in}

31 037 when converted octal


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -