From: kevin lyda (kevin at domain suberic.net)
Date: Wed 23 May 2001 - 10:40:57 IST
sometimes i move files aside for a short time and then want them
moved back. i find it annoying that there's that much typing involved.
so i wrote the following; people might find it useful.
the way i use it goes like so:
% mv foo foo.old
% stuff
% vm !mv:*
anyway, the script:
#!/bin/sh
if [ $# -ne 2 ]; then
echo "need two arguments"
exit 1
fi
if [ -d $2 ]; then
echo "the source is a directory. aborting."
exit 2
fi
mv $2 $1
kevin
-- kevin at domain suberic.net "Maybe one day downtrodden poo-eaters will fork()'ed on 37058400 get a fair shake in Savage Love, but it's meatspace place: home not going to be today." http://suberic.net/~kevin --dan savage, "savage love"
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:26 GMT