Skip to main content


Negate find parameters on linux bash

find -maxdepth 1 -type d -not -name "*hide*"

= Show all directories directly located in the current directory which do not have the word 'hide' in their name.

Combine PDF on console

Put all pdf's you want to combine in a directory. Name them in the order, you want to combine them.

qpdf --empty --pages *.pdf -- NameOfMergedFile.pdf

History search

Easy way to repeat often used commands on the linux console ... add history search backwards to .inputrc in your home directory:

cd ~

vim .inputrc

Optimize images with cronjob

With image styles and responsive breakpoints drupal generates automatically smaller images from the original uploaded ones.

Find lines in big files

Get all lines in a big file containing some text:

cat filename  | egrep "|||"

Thanks to Günter!