PROGRAMS and symbolic links
$ ls -l ~/bin/wc*
lrwxrwxrwx 1 horst horst 8 Aug 15 22:23 /home/horst/bin/wc2fn -> wc2fn.py
-rwx------ 1 horst horst 15183 Dec 26 2004 /home/horst/bin/wc2fn.py
lrwxrwxrwx 1 horst horst 5 Aug 15 22:24 /home/horst/bin/wccp -> wc2fn
lrwxrwxrwx 1 horst horst 5 Aug 15 22:39 /home/horst/bin/wcecho -> wc2fn
lrwxrwxrwx 1 horst horst 5 Aug 15 22:40 /home/horst/bin/wcgtm -> wc2fn
lrwxrwxrwx 1 horst horst 5 Aug 15 22:39 /home/horst/bin/wcll -> wc2fn
lrwxrwxrwx 1 horst horst 5 Aug 15 22:25 /home/horst/bin/wcmv -> wc2fn
lrwxrwxrwx 1 horst horst 5 Aug 15 22:40 /home/horst/bin/wcstm -> wc2fn
python code in wc2fn.py that maps sym-links to customized commands:
specialCmds = {
"wcecho" : "echo $1 :: $2",
"wcll" : "ls -l $1 $2 ; echo '' ",
"wccp" : "cp -p $1 $2",
"wcmv" : "mv $1 $2",
"wcgtm" : "touch -r $1 $2",
"wcstm" : "touch -r $2 $1",
}
Prev --
Home
-- Next
1 2 3 4 5 6 7 8 9 10