I have a script all.p
set ... ... list=system('ls -1B *.dat') plot for [file in list] file wlu 1:2 t file
Here, the last two lines are literal, not heuristic. Then i ran
$ gnuplot -p all.p
Change *.dat to the type of file you have, or add file types.
Next step: add this line to ~ / .bashrc
alias p='gnuplot -p ~/./all.p'
and put your all.p file in your home directory and voila. You can display all the files in any directory by typing p and typing.
EDIT I changed the command because it did not work. Previously, it contained list(i)=word(system(ls -1B *.dat),i) .
Jonatan ΓstrΓΆm Jan 30 '15 at 15:32 2015-01-30 15:32
source share