Month: November 2011

up count with fix character length

Sometimes it is quite important to have all the time the same length of characters. A small bash script can help and with “printf” the beginning indicated has always the same length. #!/bin/bash count=0 #counter equals zero # star loop…

diskdump (dd) on Mac OS X Lion 10.7.2

Just a short notice: After 2 month my MacBook Pro hard drive crashed. (its always good to have a backup 😉 ) I just got it back pre-installed. To save this image I just entered “recovery mode” opened a Terminal…

Dos tree or directory lister old school

Sometimes it is necessary to get all the files you have in a ASCII document. Their are several way of getting this information: You can use e.g.: directory lister or a similar program that makes is nice and colourful. But if you…