Skip to content

Instantly share code, notes, and snippets.

@alwalker
Created July 5, 2021 19:18
Show Gist options
  • Save alwalker/06123c4371eb4f0778d2c5a8bf32cc7c to your computer and use it in GitHub Desktop.
Save alwalker/06123c4371eb4f0778d2c5a8bf32cc7c to your computer and use it in GitHub Desktop.
export LC_ALL=C
FILE_NAME=$(date +%s).sar
for file in /var/log/sysstat/sa[0-9]*; do sar -A -f "$file" >> ~/$FILE_NAME; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment