Just to clarify.. I am running the command on a Mac .. but due to it being a generic unix command and a command line query.. I thought I can write on this forum..
I am running the command
df -h | grep '/dev/'
/dev/disk0s2 389Gi 62Gi 327Gi 16% /
/dev/disk0s3 76Gi 24Gi 52Gi 32% /Volumes/Backup
/dev/disk3s2 500Gi 47Gi 453Gi 10% /Volumes/Misc
Note the huge space between the 1st and 2nd Column..
This is because currently I have some NAS drives mounted.. which are not showing due to grep..
when they are not mounted.. the output is fine.. with equal spaces between each column (like between col 2 and 3.. or 3 and 4)
I want to do a (dare I say) sed or awk or something to reduce the space between 1st and 2nd col. so that it has space like between col 3 and 4.. or 2 and 3..
This is because I am showing this output somewhere and because of the space its not showing up correctly..
Also I hope the command will still work when the NAS drives (afp) are not mounted.. basically consistency..
Hope i explained myself properly..
any help is great
EDIT: Damn.. after posting realized.. the spaces are not showing properly in the quote tag.. changed it to CODE tag