Я создаю test.sh для чтения файла с содержимым
item1:return1
item2:return2
...
item10:return10
test.sh content
VAR1=$1
VAR2= `grep "^${VAR1}:" /home/path/file | awk '{print $2;}'`
echo "${VAR2}";
run test
sh test.sh item1
return
: not found test.sh:
: not found test.sh:
Когда я запускаю то же самое на Centos. return
return1
Что не так с командой awk?