Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Undoing mv foo.txt{,_}
- X-seq: zsh-users 21840
- From: René Wilhelm <rene.wilhelm@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Undoing mv foo.txt{,_}
- Date: Tue, 6 Sep 2016 19:04:05 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=+q8r7IGW5jTmUC4nGJ7qo1+gTfYLAuGudz4aFfTSETA=; b=EK/VJkvrU8tJiT75KswqNv4p59cbE9rjm95tDVzxdb/HQzPoAug3O5Ir3RAlpVvz5u KKxLkh6voIqK23w/L1oqiqSc+aMw5qmoWNefA3w4vcLahXX8T9pN/CX8XugPyYafqtT8 Mvbd7/VuSl5Y3FSuolCNE0L0wmuxEJ+HcE60mnPOF/QkzFjMxhApDBBZTuHcpUgAawdz OJbxcTnO/C8XCEY1HAz5WuzQXCwldRfEipoXqqAuuEuKOuhyEAsOpeM0agF6r1ojhxUb 9gkJv8w0una3cPBzcaPqqOjIxgfwu9RZ6Dbo6jGFumN+d3Ipv4FWLLkDJVqt6zo/vRoN 2Gxg==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hello,
what would be a convenient way to remove specified trailing characters of a
string in ZLE?
For example, when I quickly want to add a suffix to a string/filename, I
usually do
mv file.txt{,_}
What's a good way to move file.txt_ back to file.txt, or more general: how
to remove the suffix of a string, without putting it in a variable first
(e.g. a=foo.txt; mv $a $a:r)?
Thanks,
René
Messages sorted by:
Reverse Date,
Date,
Thread,
Author