|
From: Ethan A M. <eam...@gm...> - 2018-11-10 18:30:39
|
On Saturday, 10 November 2018 19:02:12 theozh wrote: > Thanks, in priciple a nice idea. > But probably works only under Linux?! > I guess 'cat' doesn't exists in a simple Win7 system. > I tried with 'type' instead, but no success. I can't help with Windows. A quick bit of googling suggests that the equivalent of "cat" in the Windows PowerShell is "get-content". But I do not know whether that works from inside gnuplot. Ethan > > On Saturday, 10 November 2018 07:05:46 theozh wrote: > > Hi, I would like to read a file (as is) into a datablock. > > I basically found two ways to do this. See code below. > > I would do something very different. > > set print "head" > print "$Data1 << EOD" > set print "tail" > print "EOD" > unset print > > load "< cat head Test.dat tail" > print $Data1 > > Ethan |