Convert var1|var2|var3... to line / other?

view full story

http://ubuntuforums.org – Hi, Into KSH, or AWK, I have a variable that contains undefined number of varX. who knows how much Code: MYVAR="var1|var2|var3..." I would like to convert it to this format, that would ouput echo $mynewvariablecontent Code: 'var1','var2','var3' would you have the possible solution? I have not managed :( The problem is that there is an undefined content of terms into MYVAR Thank you very much (Hardware)