OT: unix newbie questions
inyeol.lee at siliconimage.com
Mon Mar 27 16:51:22 EST 2006
On Sat, Mar 25, 2006 at 03:45:56AM -0800, Gerard Flanagan wrote:
> * If I want to do :
> mv mypackage-1.0.2.tar.gz subdir/mypackage-1.0.2.tar.gz
> then tab-completion gives me the first occurrence of the file, but I
> have to type the second occurrence - is there a way of not having to
> type it?
In this specific case you don't need second filename.
mv mypackage-1.0.2.tar.gz subdir/
is enough. If you need filename for some reason, use this.
mv mypackage-1.0.2.tar.gz subdir/mypackage-1.0.2.tar.gz.backup
mv mypackage-1.0.2.tar.gz subdir/!#:1.backup
This works for both bash and (t)csh.
More information about the Python-list