How can I convert my Bash script output to JSON and save it as “.json” file?
Here is my script:
Get System info
#!/bin/bash
readarray -t array <<< "$(df -h)"
var=$(echo "${array[1]}"| grep -aob '%' | grep -oE '[0-9]+')
echo "${array[3]:$...