#!/bin/bash gawk 'BEGIN {FS=OFS=","} /@/ {next} $0!~/^$/ {print $0}' $1 > locomo_Train.arff; gawk 'BEGIN {FS=OFS=","} /@/ {next} $0!~/^$/ {print $0}' $2 > locomo_Test.arff; gawk -f locomo.awk locomo_Train.arff locomo_Test.arff | gawk 'BEGIN {FS=OFS=","} NR==1 {sub(/locomo/,"locomo-"$3,Prefix)} NF>=2 {print Prefix,0,0,$1,$2}' Prefix=$Prefix;