Arrange long Command Output in Columns

21 Feb

There's this one command whose output you need to look at again and again. It's a long list of short words and whizzes by too fast and using your terminal's scroll function is cumbersome. Of course there's more or less, but that is cumbersome, too!

Searching the web for a solution only leeds t...

Continue...


Convert man pages to HTML with the Ansi Html Adapter (aha)

11 Dec

I was having a hard time trying to find a man-to-html converter that does what I want: just properly translate the little formatting that man uses. What I found (groff, troff, roffit, man2html) seemed to be either outdated (using inline- or even html-styling) or buggy or simply unable to preserve ma...

Continue...


Download all files of (a) certain type(s) from a website

16 Feb

If you get a "Forbidden" error for certain folders, it might help to start at the root of the site.

wget --recursive --no-directories --level=2 --accept pls,PLS,m3u,M3U \
--reject "*32.pls","*24.pls" \
http://somafm.com/ ; rm robots.txt

This will download all playlists for all s...

Continue...


Bash prompt and Icon font

09 Feb

Thanks to Head_on_a_Stick, who made me aware of powerline and its accompanying fonts. I'm a long-time user of the Terminus font, and I was very happy to find a patched version called Terminess.

However, powerline itself seems far too convoluted for my needs, and even after studying the docs...

Continue...


Recursively Find (and delete) Files Containing a Certain String

28 Sep

Start searching from the current directory, down into all sub-directories, for files named "filename". Found files are checked if they contain "searchstring". If they do, they will be deleted.

But we will first check what find finds before allowing it to delete anything:

find -name "filename"...

Continue...