Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.


Evolution of 'vdb'

Rather than enthusing about how useful this program is, I'll just describe it and show how it's evolved. Basically, all vdb does is read UNIX-style field-separated files and display the data as a table. You can interactively select a section of the table by selecting example fields and clicking on the buttons at the top of the column. If you click the button without selecting a field, it sorts on that column. When you're satisfied with the view you have, click "dump" and cut-n-paste the data you're interested in to a file, document, whatever. You can also edit the data in the "dump" window before selecting it... it's an edit window as well as a display.

What it doesn't do: write back to the file. There's no save, you can't accidentally trash you file by selecting a slice of it and throwing it out.

What I plan on adding: save to a new file, write selection to standard output on exit (so you can use it in a pipeline), and making it more Mac like on Mac OS X by having it sit around after you close the window and then just send data to the existing copy rather than reloading it if it's already running.

Latest version, under Mac OS X: -C '#' -F : name @passwd uid gid full-name home shell -- /etc/passwd

Latest version, under Windowmaker / X11: -C '#' -F : name @passwd uid gid full-name home shell -- /etc/passwd

Last but one, under Mac OS X: -F : name @passwd uid gid full-name home shell -- /etc/passwd

Second pass, Windowmaker again, at the end of a pipeline:

grep gnumeric /usr/ports/INDEX | vdb -F "|" name dir dest desc @descfile maint type @ @ url

First pass, under Windowmaker:

vdb -F : name passwd uid gid gcos home shell < /etc/passwd

The code, it's a script so just stick it in your path and use it from the shell or in other scripts. You may need to fine-tune the first couple lines to start wish correctly if you're not on Mac OS X.


Lynx-enhanced by <peter at> (Peter da Silva)