I have this statement in a unix script
condizio='>/dev/null; [ $? -eq 0 ] && echo 0 >'$file7
echo $condizio
awk '{n=split($1,a,"/"split(a[n],b,"." printf "grep \" b[1] \" '$trasporti_locale' %s " condizio}' condizio=$condizio $file3 >$file4
when i run my script in ksh i have this result:
>/dev/null; [ $? -eq 0 ] && echo 0 <- this is $condizio >/tmp/lista_risultato_finale_trasp_P01_Mar_21
awk: can't open [
i can't understand why awk con't open [ ??????
Anyone can help me to insert the value of condizio string at the end of all row of $file3 to create a new file ( $file4)
Thanks in advance !!!!!!!!!!!!!!!!!!!!!!
condizio='>/dev/null; [ $? -eq 0 ] && echo 0 >'$file7
echo $condizio
awk '{n=split($1,a,"/"split(a[n],b,"." printf "grep \" b[1] \" '$trasporti_locale' %s " condizio}' condizio=$condizio $file3 >$file4
when i run my script in ksh i have this result:
>/dev/null; [ $? -eq 0 ] && echo 0 <- this is $condizio >/tmp/lista_risultato_finale_trasp_P01_Mar_21
awk: can't open [
i can't understand why awk con't open [ ??????
Anyone can help me to insert the value of condizio string at the end of all row of $file3 to create a new file ( $file4)
Thanks in advance !!!!!!!!!!!!!!!!!!!!!!