Slopjong
A geek discovering the World, Tech & Science
Latest Posts
Programming
Mac
Linux
WordPress
Hardware
Howtos
Nerd Trash
bash Archive
4
When a comment leads to a syntax error in Bash
Posted on December 4, 2012
When you are writing Bash scripts and commenting out commands which are performing arithmetic operations you must be aware that they’re still interpreted in particular cases. Let’s assume we have the [...]
Continue Reading
6
Bash: Iterate over array elements
Posted on July 11, 2012
Human beings always try to keep things ordered and group objects in a box, in a bag but also in folders on a computer system. In programming languages such a [...]
Continue Reading
3
Compatibility between Zsh and Bash
Posted on July 2, 2012
Zsh is mostly compatible with Bash. Mostly. Loop If it comes to arrays and the for loop the following script works perfectly in Bash but not in Zsh. words=("first" "second" "third") for((i=0; i [...]
Continue Reading
0
ID3 batch editing
Posted on August 30, 2010
Some of my music had no interpreter and title tags set thus I wrote a little shell script to batch edit these ID3 tags. The filenames of the songs looked [...]
Continue Reading
0
Batch printing
Posted on February 1, 2010
I often upload some pdf files on a server to print them at my faculty. On the server I follow these steps: 1. Convert the uploaded pdf files to postscript for [...]
Continue Reading