Saturday, February 28, 2009

Foreach on Cygwin

Not only does my cygwin not have a manual entry for foreach, but it doesn't work.

foreach dir (*)

gives

bash: syntax error near unexpected token `(`

Any clues?

Yes. use:

for dir in *
do
whatever
done

Tuesday, February 10, 2009

Programs from G:

Simple one, but not for me.

I've installed some programs on my 80G HDD G:/ProgramFiles because my C: tends to fill up quickly.

Win XP is installed on C:

Question - now, if I reinstall XP on C:, is there anyway I can tell windows about the wonderful programs that I have on my G: and get them in my Programs list accessible from the Start menu?

Aus gurus:

Some may work out of the box. The ones that need registry entries won't and will require a reinstall. For the ones which work, you can drag shortcuts onto the start menu.