Quote:
Originally Posted by nookie
how would i go about storing this command in a variable
echo "$LINE" | awk -F"|" '{print $1"|"$2"|"$3"}'
i have tried FOO = ${command up there} but receive the error FOO: not found
aswell as a couple of other attempt but no luck
|
Code:
FOO=$(echo "$LINE" | awk -F"|" '{print $1"|"$2"|"$3"}')