Unix shell madness

Wed, 28 May. 2008     Thomas Bendler     ~ 1 min to read

At IBMs developerwork I saw nice Korn shell trick (should work in the bash as well):

> 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!

Share on: