LINUX.ORG.RU

История изменений

Исправление beastie, (текущая версия) :

f `echo $line | gawk -vFPAT='[^,]*|"[^"]*"' '{print $1, $2}'`

Proof:

f() { echo "First: $1, Second: $2"; }
f `echo abc uvw zyz | awk '{print $1, $2}'`
First: abc, Second: uvw

Исправление beastie, :

f `echo $line | gawk -vFPAT='[^,]*|"[^"]*"' '{print $1 "," $2}'`

Proof:

f() { echo "First: $1, Second: $2"; }
f `echo abc uvw zyz | awk '{print $1, $2}'`
First: abc, Second: uvw

Исходная версия beastie, :

f `echo $line | gawk -vFPAT='[^,]*|"[^"]*"' '{print $1 "," $2}'`