I have a file that has one field with this line that I need to change. What I want to have on is turn role/env/proj to ,ou=role,ou=env,ou=proj
I do this on Linux with this command but can't get the \n to work on AIX
#cat file | sed 's/\//\n/g' | sort -r | sed 's/^/,ou=/g' | tr ' \n' ' '
#cat /var/run/security-environment | sed 's/\//\n/g'
On AIX - the \n is ignored a n is put in. Have tried various things but nothing works.
cat file | sed 's/\//\n/g'