21 lines
696 B
Bash
Executable File
21 lines
696 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Paste results for two input measures into single output
|
|
|
|
## [ https://stackoverflow.com/questions/20163225/paste-files-from-list-of-paths-into-single-output-file ]
|
|
#
|
|
|
|
MEASURE1="$1" # first measure, input
|
|
MEASURE2="$2" # second measure, input
|
|
CSVFILE="$3" # results file, input
|
|
|
|
LIST="${MEASURE1} ${CSVFILE} ${MEASURE2} ${CSVFILE}"
|
|
|
|
touch buffer.txt;
|
|
echo "${LIST}" | xargs -n2 bash -c 'paste buffer.txt <(../bin/data.awk "$@") > output.txt; mv output.txt buffer.txt' FILLER; # Name,Start Time,Mean,Confidence Interval,Name,Start Time,Mean,Confidence Interval
|
|
mv buffer.txt output.txt
|
|
rm -f buffer.txt
|
|
cat output.txt
|
|
rm -f output.txt
|
|
|