Hi,
I have written a shell script to read the CLASSPATH value from Windows registry. Lets consider the CLASSPATH value is:
"E:\Install\IA\vod800_cp_nonad_silent\lib\vodjdo.j ar;E:\Install\IA\vod800_cp_nonad_silent\lib\guitoo ls.jar;"

This is my script:
Code:
GetClassPath=`reg.exe QUERY "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v CLASSPATH | grep CLASSPATH | awk '{print $3}'`
echo 'ClassPath=' "$GetClassPath"
The output is:
Code:
ClassPath= E:\Install\IA
                        od800_cp_nonad_silent\lib
                                                 odjdo.jar;E:\Install\IA
                                                                        od800_cp_nonad_silent\lib\guitools.jar;
I guess its because of "\v" in the values. How do I avoid this? Can I use 'tr', so that I get the value in proper format?

Thanks!