Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: cd $(locate zoo.txt|head -1)(:h)



zzapper <david@xxxxxxxxxxxxxx> wrote in
news:XnsA5AC8D35FCD60davidrayninfocouk@80.91.229.13: 

> cd $(locate zoo.txt|head -1)(:h)
> 
> I'd like to make this a bit more versatile, i.e detect more than one
> result and may be offer a list?

 cd $(locate -r -l1 "/zoo.txt$")(:h)



-- 
zzapper
https://twitter.com/dailyzshtip

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus




Messages sorted by: Reverse Date, Date, Thread, Author