Here are a few useful examples for powerful Linux commands:


Creating a word list with sed

This sed script creates a list of words with frequencies from a text input. It is quite fast even for a large input text.

Fastest rsync command

Occasionally, rsync is too slow when transferring a very large number of files. This article discusses a workaround.

Google search with a shell script

I wanted to have a diagram showing the number of hits for a particular search term in Google, Yahoo, Bing and other search engines and how they change over time. Naturally, this should be done as a Linux cron job executed in regular intervals.

parsing exim mainlog file with sed

This script finds all mail hosts found in the exim mainlog results file. It then creates one log file per host with potential error messages. Useful for debugging exim mail server problems.

sed strip empty lines and comments

This sed script removes all comments and empty lines from shell scripts.

Using vi as a hex editor

Sometimes one needs to edit a binary file. The easiest way to do this is using a hex editor which displays all bytes in a file as hex.

xargs Tutorial

Manchmal stößt man auf Linux Verzeichnisse, die so viele Dateien enthalten, dass man sie nicht mehr löschen kann.

  • No labels