This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert OMNeT++ .vec files into long-format (tidy) csv file | |
# | |
# The vector data first needs to be sorted by vector (first field) for join to work | |
%.vecdata: %.vec | |
grep -v '^vector\|attr\|version\|param\|run' $< | grep -v '^$$' | sort -k 1n > $@ | |
%.vecmatch.join: %.vec | |
grep '^vector' $< | grep -v '^$$' | sed 's/vector\s\+\([0-9]\+\)\s\+\([^ \t]\+\)\s\+\([^ \t]\+\)\s\+[ETV]*/\1\t\2\t\3/' > $@ |