On 07/09/2021 11:53, Eric Smith wrote:
Hi zshellers, I use event history matching a fair amount and can subscript the command to return a specific token like this. $ !?foo?:% for the token containing foo $ !?foo?:$ for the last token How would I match for the token containing `bar`? Thanks for the tips. Best wishes Eric
echo !?foo?:2 # second echo !?foo?:0 # first echo !?foo?:% # token echo !?foo?:$ # last That's all I know await other answers zzapper