home / blog

Random things I learnt today

clearfsimport can be used as non-root user when used with the misleadingly named option –nsetevent

Awk is useful for filtering specific line numbers from files.

# all but first line
awk "NR>1" foo.txt

 # everything but line 3
awk "NR!=3" foo.txt

# lines 3 to 7 inclusive
awk "NR>=3&&NR<=7" foo.txt 

In Spanish and other languages days or week and months are not capitalized.

Nothing can appear before the <?xml tag ?>, e.g. copyright headers

The SQLite license raises a smile.

The SQLite source code contains no license since it is not governed by
copyright. Instead of a license, the SQLite source code offers a blessing:

   May you do good and not evil
   May you find forgiveness for yourself and forgive others
   May you share freely, never taking more than you give.
This entry was posted in geek and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published.