Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
该命令awk 'END{print NR}' file.log返回一个整数,但后面有一个空格?我将如何修改该命令,以便在结果后不返回空格?
awk 'END{print NR}' file.log
awk 'END{print NR}' file.log获取 的长度file.log。
file.log
尝试printf改用:
printf
awk 'END{printf NR}' file.log