And that will get the Filesystem in the first field, but for the next column, I tried different fields and I still keep getting a blank space.
Any help you guys can give will be greatly appreciated!
Thanks!
Well, a quick and dirty way would be to interpose a sed command which would reduce multiple spaces to just one. Then the "Mounted On" column would reliably be field 5 (assuming your df outputs in the same format as mine):
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Previous Thread in Shell Scripting Forum Timeline:Counter