I have the following bash command:
df -htgfs | awk '{print $5,$4}'| grep "^/"
Gives me the following output:
/VAULT10 48%
/VAULT11 39%
/VAULT12 59%
/VAULT13 48%
/VAULT14 38%
However, I'd like it in the format below:
/VAULT10 /VAULT11 /VAULT12 /VAULT13 /VAULT14
48% 39% 59% 48% 38%
But I'm not sure how to achieve it easily in bash (can be space, tab or comma seperated, it's only going to end up being copied/pasted into an excel spreadsheet anyway).
For clarity, the raw df -htgfs output is as follows (this box runs GFS disk clustering).
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/pool_gfs-pool_gfs
506G 368G 138G 73% /VAULT10
/dev/mapper/pool_gfs1-pool_gfs1
506G 202G 304G 40% /VAULT11
/dev/mapper/pool_gfs2-pool_gfs2
506G 200G 306G 40% /VAULT12
/dev/mapper/pool_gfs3-pool_gfs3
506G 260G 246G 52% /VAULT13
/dev/mapper/pool_gfs4-pool_gfs4
506G 237G 269G 47% /VAULT14
Any ideas?