Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Very useful !#^
- X-seq: zsh-users 11714
- From: Achille <achille.listserv@xxxxxxxxx>
- To: "Tim Haynes" <zsh@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: Very useful !#^
- Date: Sat, 4 Aug 2007 10:36:02 -0400
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <87wswc7qj9.fsf@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns9981863B7C3F4zzappergmailcom@xxxxxxxxxxx> <87wswc7qj9.fsf@xxxxxxxxxxxxxxxxxxx>
I usually use brace expansion for this, it's a bit easier to remember
ie: cp reallybigfilename{,-backup}
it expands to: cp reallybigfilename reallybigfilename-backup, if you have certain settings set you can also just tab and it will expand it for you.
Don't forget the comma right after the brace. You can also change extension by:
mv textfile.{txt,bak} -> expands to mv textfile.txt textfile.bak
Messages sorted by:
Reverse Date,
Date,
Thread,
Author