On 02/05/2014 12:42 PM, Steven S. Critchfield wrote:
----- Original Message -----
Consider when you type mount ( at least on OSX)
$mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
it gave me what I wanted, but it sure is sloppy. Let's see if we can't
clean things up a bit.
$ mount | column -t
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid,
automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
column can be used on any bit of output that you want in clean
columns.
This tip comes from reddit.com/r/linuxadmin
http://www.reddit.com/r/linuxadmin/comments/1x0ql2/whats_a_linux_command_you_wish_you_had_known/
Interesting command. I'll have to look at it again later. It did seem to help
the columns line up, but I noticed that the example has varied output and made
the columns not as useful.
I could see using it possibly to correct text that was corrupted in a copy
paste maybe.
Worked for me. Beware what email MUAs might do to mangle outbound and
inbound...
Now, will I remember this when I need it? Not likely ;)
Howard
--
--
You received this message because you are subscribed to the Google Groups
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nlug-talk?hl=en
---
You received this message because you are subscribed to the Google Groups "NLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.