在RHEL Linux中,如果我从saXX文件中读取历史数据,它会在每45行后打印标题(例如%user%nice%system)。我们是否可以改变这种行为? (比如在hp-ux中,描述标题只打印一次 - 它不会重复)。
答案 0 :(得分:2)
You can try:
sar | cat
I'm not entirely sure why, but the headers after the first one aren't actually included in stdout, stderr, etc, so piping to cat removes them and the extra spaces generated before them.