I wanted a command language translator that can be used in bash shell scripts. There are a couple of options available, but none that were versatile enough. A little research resulted in finding that Google Translate offered what I wanted and that there was a JSON interface, which I could use with Perl’s JSON module.
I added [...]
It’s a WYSIWYG world. After all, we’re nearly in the future, which I define as 2019, the year Rick Deckard chases down replicants in the Blade Runner. Still no flying cars, which is disappointing. Even so, we have Steve Jobs, so the future coming, right?
GUI everything isn’t all that it could be. For many, many tasks, [...]
So, you use the command line. And, you’d like to look at a command’s manual page.
Wouldn’t it be handy to open the page into another window, nicely formatted, all typeset and neat? That is exactly what this little script will do.
I keep my personal scripts and executables in ~/bin (the bin directory inside my home directory). [...]
If you are using SSH to access a command shell on a remote system and you would like to temporarily return to a shell on your local system, there is an easy way to do so.
Simply type a tilda (“~”) and control-z.
This will place your SSH session into the background. You will be in a shell [...]
I needed to pad a day of the month value to 2 places in a bash script.
This is made easy by the GNU program printf, which is part of standard distributions of Linux. In the following script snippet, the current day of the month is passed from the command invocation (or, if not specified, defaulted to [...]