temporaneità
English scratches and Italian notes written by Carlo Perassi
  • About
    • Borges
  • Curriculum Vitae
  • Contact
Browse: Home / Bash

Bash

Finding file extensions with AWK

By Carlo on 2007-01-30

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.

Posted in English | Tagged AWK, Bash, Subversion, trivial hacks | Leave a response

Wishes with a script and Bluetooth

By Carlo on 2006-12-27

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 [...]

Posted in English | Tagged Bash, Bluetooth, trivial hacks | Leave a response

A script to make a folder UNIX-like

By Carlo on 2006-12-18

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 [...]

Posted in English | Tagged Bash, dos2unix, Kaz Kylheku, trivial hacks | 1 Response

« Previous

Search

It passes

it passes

My posts, unless otherwise expressly stated, are licensed under a Creative Commons Attribution-Share Alike 2.5 Italy License.

Copyright © 2006 - 2012 by Carlo Perassi. Powered by WordPress and Hybrid.