str=""
user=`echo $str | awk 'BEGIN'`
id=`echo $str | awk 'BEGIN'`
addr=`echo $str | awk -F? ''`
echo "a=1 b=2 c=3"|sed -e 's/ /=/g'|awk -F= '{print $2 $4 $6}'
下面这个更准确
echo "a=1 b=2 c=3"|sed 's/[[:space:]]\+/=/g'|awk -F= '{print $2 $4 $6}'
echo "a=abc b=bcd c=cde" | sed 's/=/ /g' | awk '{print $2,$4,$6}'
perl -le 'print $_ for split /\w=/, "a=1 b=2 c=3"'