laurentiuz
Programmer
Hi ,
assuming the script :
24 |OLK 7204|* OLK 7204 : olkserv /port:7210
I have stored this string in a variable zltest.
If I am doing echo $zltest | awk '{ FS="|" ; print $3 }'
I will the corect result which is :
* OLK 7204 : olkserv /port:7210
but if I am doing : zltest1=`echo $zltest | awk '{ FS="|" ; print $3 }' ` and then echo $zltest1 the result is quite different (and incorect). It is as it takes the list of files which are in the curr subdir.
I've tryed with cut and with ther separators but the result is the same.
Can you let me know if I have an error somewhere or if there is another way to have the result ?
Thank you !
assuming the script :
24 |OLK 7204|* OLK 7204 : olkserv /port:7210
I have stored this string in a variable zltest.
If I am doing echo $zltest | awk '{ FS="|" ; print $3 }'
I will the corect result which is :
* OLK 7204 : olkserv /port:7210
but if I am doing : zltest1=`echo $zltest | awk '{ FS="|" ; print $3 }' ` and then echo $zltest1 the result is quite different (and incorect). It is as it takes the list of files which are in the curr subdir.
I've tryed with cut and with ther separators but the result is the same.
Can you let me know if I have an error somewhere or if there is another way to have the result ?
Thank you !