Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Returning last parameter of a history command
- X-seq: zsh-users 10753
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Returning last parameter of a history command
- Date: Fri, 22 Sep 2006 13:59:00 +0000 (UTC)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: SuccessTheory
- Sender: news <news@xxxxxxxxxxxxx>
Hi
how should this done in zsh-speak
history -n -1|sed 's/^.* //
Where the sed returns the last parameter
--
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author