- 论坛徽章:
- 0
|
awk中如何改变一个域的值,并把它写回文件?
[quote]原帖由 "yuonunix"]难道awk不提供方式直接写回文件,而必须先写到别的文件,再用mv吗.[/quote 发表:
抄一段 awk 的 man page:
The print statement prints its arguments on the standard
output, or on a file if >expression is present, or on a pipe
if '|cmd' is present. The output resulted from the print
statement is terminated by the output record separator with
each argument separated by the current output field separa-
tor. The printf statement formats its expression list
according to the format (see printf(3C)). |
|