Please see example below:
df -h |sed -E 's/[[:space:]]+/,/g' > testfile.xls
You now can open testfile.xls file using Excel or analog to see your table
You may generate any table comma separated to get excel table
Notes
Please see example below:
df -h |sed -E 's/[[:space:]]+/,/g' > testfile.xls
You now can open testfile.xls file using Excel or analog to see your table
You may generate any table comma separated to get excel table