Count search results on Linux shell

Lets imagine you want to search for a term in a file and you want to know, how often it can be found in the file. With this command combination you can count search results on bash: $> less xmlfile.xml | grep SearchmeIfYouCan | wc -l This is how this way to count search results […]

Reset home folder permissions

Recently I messed up my life by running this from out of my home folder: $> chmod 600 * Naturally I thought to be in another folder 😉 The result was, that I could not open any programs any more. What was not that nice! 😉 To get out of trouble I had to run […]

Formatted CSV output on Linux shell

If you want to output a CSV file on Linux shell, you could just open it with less, cat or nano (un-formatted CSV output): $> less mydummyfile.csv $> cat mydummyfile.csv $> nano mydummyfile.csv The problem with this approach is, that you will get an unformatted ugly chunk of characters like that: A much better way is it, […]