I have a simple bash script that pulls the SMART data for all the drives in my server and picks out the key parts.
It stores the info in a temp file in the desired format and then uses that temp file as the emails body, which i get once a week.
I'm trying to figure out how to get the same script to instead of putting all this info together in 1 file but put it into seperate files.
IE.. smart report for /dev/sda goes into a file called 20160524_sda the report for /dev/sdb goes into a file called 20160524_sda and so on.
How do i get the filename to change its sdX part with each report?
برچسب:
نویسنده: استخدام کار