Tagged: bash

Shell Nuggets: Quickie Tabulizer 0

Shell Nuggets: Quickie Tabulizer

I’m real bad about things lining up.  Used to go out of my way to ensure variable declarations were columnized by access mode, type, name, equals sign and initial value. final BufferedImage mapImg = MapImageFactory.newInstance(width, height); final int count = ad.getPosition() * 2; mapImg.composite(adImg, 25 , (this.adHeight + 20) * count + 20, Over); mapImg.composite(adTxt, 25 + this.adWidth, (this.adHeight + 20) * count + 20, Over); The Tabularizer plugin for vim was a boon for productivity.  Well, mine.  For everyone else,...

Shell Nuggets: Musing on Dates 0

Shell Nuggets: Musing on Dates

Nigh ever day I happen across some gem tucked away in the opaque vista of the *nix command-line shell.   While attempting to contrive the proper arguments for a date command interpolation, the following editorial injection from its GNU info entry caught my fancy. 28 Date input formats ********************* First, a quote: Our units of temporal measurement, from seconds on up to months, are so complicated, asymmetrical and disjunctive so as to make coherent mental reckoning in time all but impossible. Indeed, had some...

Stuffing Text Into All Screen Windows 0

Stuffing Text Into All Screen Windows

Various pagers have been giving me question marks in boxes and hexadecimal codes.  This is probably because I didn’t have the right font in the past and inserted various hacks into my ~/.bash tree to get around them, e.g. aliasing a LANG=C before every perldoc command. Well, now I’ve just about got everything right and proper in UTF-8 mode using a uxterm, but those little nigglers still pop up.  Today I did a man less and found the LESSCHARSET environment...