May 28, 2008

UNIX shell madness

At IBMs developerwork I saw nice Korn shell trick:
$ mv kxp12.c file_system_access.c
$ ln –s !$ !:1
This one first move a file to a new name and create a symbolic link with the old name. Somehow cool!

No comments: