Snippets code from my daily experience

June 16, 2007

The launched commands top ten

Filed under: cygwin, unix — dafi @ 7:57 am

topyli shows a bash command line to list the launched commands top ten

A very simple command line

history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c | sort -rn | head -10

June 9, 2007

Cygwin managed mount points and bad filenames… when UGLY == %55%47%4C%59

Filed under: cygwin — dafi @ 5:10 pm

I love cygwin, I can’t live without it but not all features are so cool.

Recently I’ve used cygwin managed mount points, a cool feature that allows you to create symbolic links in Microsoft Windows. So if you write

mount -f -s -b -o managed "c:/prj/src/java" /srcjava

you can use /srcjava to access to mounted directory, e.g. ls /srcjava

But if you create files containing uppercase letters in names they are shown in strange manner.

For example the file UGLY is shown as %55%47%4C%59 (percent sign followed by decimal ASCII value for every character).

This behaviour is ugly for me and so I’ve dropped all managed mountpoints!

Blog at WordPress.com.