https://github.com/virtualagc/virtualagc
Raw File
Tip revision: 4e5d304eb7cd5589b924ffb8b423b6f15511b35d authored by Ron Burkey on 20 October 2018, 17:47:00 UTC
The sample Block I AGC program TRIVIUM, found at the very end of one of
Tip revision: 4e5d304
CompareLuminary116.sh
#!/bin/bash
 
mkdir ~/Desktop/CompareLuminary116
cd ~/Desktop/CompareLuminary116
if [[ "$2" != "" ]]
then
	dirs="$1 $2"
elif [[ "$1" != "" ]]
then
	dirs="$1 Luminary116"
else
	dirs="Luminary099 Luminary116 Luminary131"
fi
mkdir $dirs

for n in $dirs
do
	cp ~/git/virtualagc/$n/*.agc $n
done

find -name "*.agc" -exec sed --in-place -r \
	-e 's/^[^#]*//' \
	-e 's/[[:space:]]+/ /g' \
	-e 's/^[#][[:space:]]*$//' \
	{} \;

meld $dirs

cd -
back to top