There is usually some orphan packages left on the system after upgrading Ubuntu from one major version to another. These packages can cause strange errors like Ubuntu bug #151045. The solution to this problem is a package named deborphan. deborphan removes orphan packages that are left on your Ubuntu installation and you should run this [...]
Posts Tagged: xargs
Strip the kernel to contain only needed modules
This is a great page with som nice bash scripts describing how to remove unwanted modules from your kernel.
Courier-IMAP to Dovecot Migration Script
I’ve just migrated a couple of servers from Courier-IMAP to Dovecot, and am very happy with the latter so far. I thought I’d share the courier2dovecot shell script I whipped together (based on the instructions I found in the migration how-to), for converting Courier-IMAP maildirs to Dovecot format. While the script is rather simple, it [...]
Shell script for removing duplicate files
The following shell script finds duplicate (2 or more identical) files and outputs a new shell script containing commented-out rm statements for deleting them. You then have to edit the file to select which files to keep – the script can’t safely do it automatically! OUTF=rem-duplicates.sh; echo “#! /bin/sh” > $OUTF; find “$@” -type f [...]
Find all web pages that reference to www.example.com
find / -name ‘*html’ -print \ | xargs grep -l ‘www.example.com’ \ | less -Opages
Recent Comments