#!/bin/bash # # histcmpevts - generate R code that plots two Cycle Per Instructions # histograms in the same graph to allow for visual comparison # # USAGE: histcmpevts file | R --vanilla # generates file.png # set -e #set -x if [ ! $# -eq 1 ]; then echo "usage: $(basename $0) file" >&2 exit 1 fi if [ ! -f "$1" ]; then echo "file '$1' does not exist" >&2 exit 1 fi b1=$(basename $1) cat <