|
From: Juergen W. <wie...@fr...> - 2005-06-17 20:32:53
|
Am Freitag, 17. Juni 2005 21:48 schrieb Lutz Maibaum:
> On Thursday 16 June 2005 00:23, J=FCrgen Wieferink wrote:
> > In this special case, backtic substition will already do the job:
> >
> > plot `ls -1 a.*.dat | dirlist.pl`
>
> The problem with this is that it produces a plot with only a single item,
> i.e., all the different files have the same (point|line)style. I was hopi=
ng
> for a shortcut to automatically plot many files, each with a different
> style.
Have you actually tried? I get each file with its own line- and
pointstyle.
It may be possible to get the "dirlist.pl" simpler than the
following, though...
#!/usr/bin/perl -w
my $save =3D "\"";
while (<>) {
print $save;
s/\n/", "/;
$save =3D $_;
}
$save =3D~ s/, \"$//;
print $save;
Juergen
|