Search Results

Search: Posts Made By: radupopa
4,751
Posted By radupopa
I guess my explanations were not great, 'cause ur...
I guess my explanations were not great, 'cause ur code works great. 10x and sorry for the trouble
4,751
Posted By radupopa
well, as I said I need to have the result of...
well, as I said I need to have the result of $(echo "$x" | cut -d"~" -f1) stored into a variable, then to echo this one. but quoting the input for echo seems not to work inside $(...); i.e echo "$x"...
4,751
Posted By radupopa
sorry to be a pain in the behind, but eventually...
sorry to be a pain in the behind, but eventually anybody has a solution?
4,751
Posted By radupopa
right; my problem is that I need to assign the...
right; my problem is that I need to assign the result to a var then echo it;
like:

var="hello * world~something"
var2=`echo "$var" | awk -F~ '{print $1}'`

echo $var2
4,751
Posted By radupopa
actually I've simplified it a bit: I need to...
actually I've simplified it a bit: I need to assing echo "$x" | cut -d'~' -f1 to a variable, then echo it; that's why the double echo

in my hp-ux it seems cut works with ~ unquoted
4,751
Posted By radupopa
* problem
I have something like this:

x="hello * world~something"

I know for verbatim printing I need to do echo "$x", but I need also to cut just 1st field from the string (delimiter is ~).

I'm...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 04:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy