Bash Save Command Output To Variable Cost