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 -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -