簡體   English   中英

為什么這個 AWK 命令在填充控制台寬度時刪除一個字符?

[英]Why this AWK command deletes a character when the console width is filled?

命令是

 tail -f log | stdbuf -i0 -o0 -e0 $AWK '{print $0,"\n"; fflush();}' 

在此處輸入圖片說明

您可以看到我們錯過了“選項”中的“o”。 這種字符刪除發生在每一行中。

我已將命令替換為

stdbuf -i0 -o0 -e0 sed --unbuffered '0~1 a\\'

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM