1

Issues with sed on SunOS

view story
linux-howto

http://www.unix.com – Why does the below command doesnt work fine on SunOS 5.10 Code: $ cat t   |  AK|  |  | |  |  DS  |  |  |  |  tAR |  |  | |  |  FIL  | $ sed -e 's/^ *//g' -e 's/ *$//g' -e 's/ *| */|/g' t |AK|||||DS||||  tAR|||||FIL| ##notice before tAR works fine on Linux OR AIX though Code: $ sed -e 's/^ *//g' -e 's/ *$//g' -e 's/ *| */|/g' t |AK|||||DS||||tAR|||||FIL| (HowTos)