Enviado em 14/05/2019 - 17:50h
Eu tenho o seguinte commando
echo test | awk '{ system("echo '"'"' " $var) }'
Mas ele gera
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
Eu queria que aparecesse
'test
Por exemplo, quando eu executo
echo test | awk '{ system("echo '"e"' " $var) }'
ele coloca o "e" no inicio (e test)
echo test | awk '{ system("echo '"'"' " $var) }'
Mas ele gera
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
Eu queria que aparecesse
'test
Por exemplo, quando eu executo
echo test | awk '{ system("echo '"e"' " $var) }'
ele coloca o "e" no inicio (e test)