How to write a shell script ?
I am from the performance testing background and working on an application hosted on an app server having the Fedora OS. While load testing, I will need to collect the CPU, Memory and Disk metrics for the app server.
With regard to the same, I will need to write a shell script which will generate the output from the vmstat and iostat command at a sampling rate of 5 seconds and redirect to a single notepad.
I tried to google it but did not find any feasible solution. Can someone please help. It's urgent.