Hi all,
Can anyone help me with a script to produce an output file of a "df -m" command with ";" seperators. I assume its very easy but I know nothing about Linux/Unix (I'm a newbie)
That is:
df -m
[philani@slayer ~]$ df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/md0 9845 4881 4464 53% /
/dev/md1 62994 12201 47593 21% /app
/dev/sdb1 312 25 271 9% /boot
/dev/sda1 563166 339521 195038 64% /data
none 1005 0 1005 0% /dev/shm
The output file should contain something like this:
9845;4881;4464; 53%;/
62994;12201;475 93;21%;/app
Can anyone help me with a script to produce an output file of a "df -m" command with ";" seperators. I assume its very easy but I know nothing about Linux/Unix (I'm a newbie)
That is:
df -m
[philani@slayer ~]$ df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/md0 9845 4881 4464 53% /
/dev/md1 62994 12201 47593 21% /app
/dev/sdb1 312 25 271 9% /boot
/dev/sda1 563166 339521 195038 64% /data
none 1005 0 1005 0% /dev/shm
The output file should contain something like this:
9845;4881;4464; 53%;/
62994;12201;475 93;21%;/app
Comment