Here is a script that I wrote and use in SAM, although it is not a
part of the SAM distribution. I put it here for your
benefit:
#!/bin/sh
# gogeeq
# Joseph Rosevear 220313 I made this script (gogeeqie) by copying it
# from go_xv.
# Joseph Rosevear 220313 I changed the code to:
# -store the temporary files in /tmp
# -use geeqie instead of xv
# -use $plot instead of plot
# -use $data instead of data.txt
# -don't do "cd $level"
# -use $lines (which now comes from $3) instead of $1.
# Joseph Rosevear 220321 I changed to code to be compatible with an
# instruction file that makes a .svg file instead of a .eps file.
# Joseph Rosevear 220713 I changed the name of this script from
# gogeeqie to gogeeq.
# Definitions.
data="$1"
plot="$2"
if [ "$3" = "" ]; then
lines=0
else
lines="$3"
fi
# Make file.svg (as defined in instruction file).
cat $data | skip $lines | gnuplot $plot
# Plot file.svg using geeqie.
geeqie /tmp/file.svg
If you want to use this script, you'll have to make some
changes. The script uses skip which I haven't
provided. Tool skip skips $1 lines and
allows the user to skip over an arbitrary number of initial data
points. Perhaps you can write your own tool or code snippet?
This bit of code might work to replace skip, if
you first export lines:
tac /dev/stdin | head -n -$lines | tac