Subtract the Content of Two Files
Published on 07 Jun 2004Have you ever wanted to remove the content of one file from the content of another file linewise? I have been in the situation several times.
Have you ever wanted to remove the content of one file from the content of another file linewise? I have been in the situation several times.
Instead of first creating a tarball and then using scp to transfer it to another host, you could simply:
Unfortunately, the default perl sort algorithm was changed to Mergesort (formerly Quicksort) which does not provide in-place sorting as Quicksort does. This fact and some obscure stupidity in the implementation causes the space requirements to be much higher than the size of the original list.
It is sometimes useful to revert to the revision of a file that has already been checked in:
After several months of excessive usage of my Gentoo desktop, a pile of package is installed some of which I do not need or want anymore. Unfortunately, it is not save to unmerge an arbitrary package because it might damage another package that depends on the first. Therefore, I needed some magic to compile a list of leafs in the dependency tree to decide which packages can be unmerge safely.
Bash supports various constructs for substituting contents of variables.
To change the keymap of your X server while it is running use the following command:
The ssh client and server are able to forward local or remote ports through the tunnel and resume delivery on the other side. Port forwardings are either local or remote and are configured on the command line of the client or inside the SSH client configuration: