awk print $1 $‘var’
This command will print the first field of each line of input, followed by the literal string "$'var'". The variable "var" is not defined within the command, so it will be treated as a literal string.
For example, if the input is:
apple 5 banana 3 orange 2
The output would be:
apple $'var' banana $'var' orange $'var'
原文地址: http://www.cveoy.top/t/topic/ejJS 著作权归作者所有。请勿转载和采集!