Es Tea Double Eye

You're never too old for a happy childhood

Tag: bash

5 simple Bash tips

If you work in the command line on Bash a lot you’ll probably find that you often repeat commands. Often you need to run similar commands, but change something like a path, for example. Below are 5 very basic and simple things you should get into the habit of using as they just might make [...]

Using Bash to update Twitter with the current playing track in iTunes

Bash can do everything. From curing cancer right up to making you look cool :) I wanted to update Twitter when I listen to something very, very cool like Tom Waits. This Bash script gets the info of the current playing track from iTunes using the osascript command (osascript executes AppleScript, so naturally, this is [...]

How to calculate the days between two dates using Python. Quickly.

This is one of those pretty useless things, but you never know when you might just have the need for something like this… I have not taken the time to investigate a quicker way using Bash, but my love of Python made me use it without even thinking twice! :) I first fired up the [...]

Bash script or command to get a process id

Bash (a.k.a. Bourne Again SHell) is one of the best tools you’ll ever come across on Linux, Unix or OSX. You can do virtually anything with it! It is said that bash even cures cancer! Now, let me make this very, very clear… I’m not an expert. I haven’t written much bash scripts for the [...]