Finding file extensions with AWK
This one-liner helps in finding the file extensions of a given Subversion working copy: find path_to_repos -type f | grep -v “/.svn/” | awk -F “/” ‘{print $NF}’ | awk -F “.” ‘{if (NF > 1) {print $NF}}’ | sort | uniq Its usage outside of Subversion is even more trivial.
Wishes with a script and Bluetooth
At the end of each of the last few years I sent a short message to my friends with a text like “Dear Name, I wish you a Happy New Year”. It was not possible to send a custom message to each of them using my mobile, so with a bit of scripting I got [...]
A script to make a folder UNIX-like
Sometimes I have to deal with people who use a tentatively OS that, among other things, doesn’t understand UNIX-like permissions :). I modified a bash script of Kaz Kylheku (found in bash-doc) which for a given folder recursively changes: the permissions of all its files to 644 (and “dos2unix” them); the permissions of all its [...]
