私はawkを初めて使用します。テキストファイルを交換するために何かを書こうとしましたが、失敗しました。
のように出力したい'hello'
。
I used command awk '{print "'hello'"}' filename
to do it.but failed:
output like: hello
but I used command awk '{print "\'hello\'"}' filename
to do it.failed again:
output like: >
ok.awk コマンドは私の言いたいことを理解していないようです。そのため、問題を解決する方法について混乱しています。
みんなありがとう。