O'Reilly logo
  • Lokesh Singh thinks this is interesting:

The first part of this command (find ./ -name "*~") finds all the files in the current directory (./) or its subdirectories with a name that ends in a tilde (*~). This list is then piped to xargs, which adds each input value to its own rm command. Problems can arise if filenames contain spaces, since by default xargs uses both spaces and newlines as item delimiters. The -d "\n" option tells xargs to use only newlines as delimiters, thus avoiding this proble...