Skip to content

Instantly share code, notes, and snippets.

@unot
Created October 25, 2011 01:43
Show Gist options
  • Save unot/1311067 to your computer and use it in GitHub Desktop.
Save unot/1311067 to your computer and use it in GitHub Desktop.
各地点の組み合わせの色差を計算してExcelに貼りやすいように成形する
for i in *.lab;
do
for j in *.lab;
do
if [ "$i" = "$j" ]; then
continue;
fi;
if [ -e dE_${j%.lab}-${i%.lab}.txt ]; then
continue;
fi;
./deltaE.sh $i $j >dE_${i%.lab}-${j%.lab}.txt ;
done;
done
for i in *.lab;
do
for j in *.lab;
do
if [ "$i" = "$j" ]; then
continue;
fi;
if [ -e dE94_${j%.lab}-${i%.lab}.txt ]; then
continue;
fi;
./deltaE94.sh $i $j >dE94_${i%.lab}-${j%.lab}.txt ;
done;
done
cp dE_a-b.txt dE_all.txt
for i in dE_*.txt;
do
if [ "$i" = "dE_a-b.txt" ]; then
continue;
fi;
paste dE_all.txt $i >dE_all-tmp.txt;
mv dE_all-tmp.txt dE_all.txt;
done
cp dE94_a-b.txt ./dE94_all.txt
for i in dE94_*.txt;
do
if [ "$i" = "dE94_a-b.txt" ]; then
continue;
fi;
paste dE94_all.txt $i >dE94_all-tmp.txt;
mv dE94_all-tmp.txt dE94_all.txt;
done
@unot
Copy link
Author

unot commented Nov 11, 2011

deltaE.sh: git://gist.github.com/902908.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment