Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ethan A Merritt Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Plot datafiles in bulk Date: Tue, 07 Jun 2016 21:49:55 -0700 Organization: A noiseless patient Spider Lines: 28 Message-ID: References: <1e061eba-f693-4eee-9f63-ce7809dc5f91@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Wed, 8 Jun 2016 04:49:56 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="8f9dc1bf4669ee0363f8c8ab8bac8e1e"; logging-data="6084"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+NDFhF44bm0XnOcPhRlf0n" User-Agent: KNode/4.14.5 Cancel-Lock: sha1:/EnSpE2sG4fUyp5h+PGlpo6iznk= Xref: csiph.com comp.graphics.apps.gnuplot:3335 Karl Ratzsch wrote: > Am 07.06.2016 um 21:22 schrieb explorat123@gmail.com: >> Hi, >> >> I'd like to plot multiple .csv files in bulk, regardless of their >> names: 20151221-Log.csv >> 20160315-Log.csv >> 20160601-Log.csv >> ... > >> >> Is there an easy way to do this without having to specify the name >> for each individual file and without having to join the files ? > > > "plot" obviously does not support wild cards, but something like > > fnlist = system("ls *.csv") > n = words(fnlist) > fname = word(fnlist,i) > plot for [i=1:n] fname(i) using .... > > could work. Or fnlist = system("ls -1 *.csv") plot for [FILE in fnlist] FILE