7ŒŽ7“ú@BASHƒ[ƒ~—ûK–â‘è@‰ð“š@“ì Œc“T


–â‘è‚P myif.sh

#!/bin/bash
if [ -f juukaiki.dat ] && [ -f word.dat ]
 then sort juukaiki.dat && sort word.dat
elif [ -f word.dat ]
 then sort word.dat | uniq -c | sort -n | head -1
elif [ -f juukaiki.dat ]
 then sort +1 -n -r juukaiki.dat
else echo not found any files
fi


–â‘è‚Q myif2.sh

#!/bin/bash
if test -f juukaiki.dat 
 then
	if test -f word.dat
	  then sort juukaiki.dat ; sort word.dat
	else sort +1 -n -r juukaiki.dat
	fi
elif test -f word.dat
 then sort word.dat | uniq -c | sort -n | head -1
else echo not found any files
fi