rblog

Heavy duty protection for my cell phone

Got my Otterbox Defender Case here the other day. Superb protection for my phone, makes it waaaay more shock resistant, and also makes it water resistant. Note – not waterproof, just water resistant, but it cover my needs. I have a waterproof bag for moments when the going gets really tough (Birkebeinerrittet last year for instance).

I have access to all features of the phone without problems, loving it!

How to exclude files when using ls

Had a directory with > 150 *.properties-files and needed to check if there where any files not ending with .properties. ls lists all the files, combine it with grep and you are saved.

# See all files ending in .html
ls | grep “\.html$”
# see all files not ending in .html
ls | grep -v “\.html$”

Solution found at unix.com