Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: can I access output of locate?
- X-seq: zsh-users 20005
- From: zzapper <david@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: can I access output of locate?
- Date: Fri, 13 Mar 2015 17:17:50 +0000 (UTC)
- 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
- Organization: Your Company
- References: <XnsA45CA6B27FC84davidrayninfocouk@80.91.229.13> <XnsA45CAAA012255davidrayninfocouk@80.91.229.13> <55031519.9020906@mailoo.org>
Edelwin Khaelos <edelwin@xxxxxxxxxx> wrote in news:55031519.9020906
@mailoo.org:
variables
# then to answer my own question
a=($(locate my.cnf)) # the outer () are important
echo ${a[1]}
--
zzapper
https://twitter.com/dailyzshtip
---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author