Bash Save Command Output To Variable Frequency