#!/bin/sh
# cp /home/sxf/word.txt /home/sxf/4_23/
#rm -rf /home/sxf/tt.txt
sort /home/sxf/tt.txt > /home/sxf/sort.txt
#quit normal
if [[ $? -eq 0 ]];
then
echo "sucess"
else
echo "failed"
fi
#or
if [[ $? == 0 ]];
then
echo "sucess"
else
echo "failed"
fi
# cp /home/sxf/word.txt /home/sxf/4_23/
#rm -rf /home/sxf/tt.txt
sort /home/sxf/tt.txt > /home/sxf/sort.txt
#quit normal
if [[ $? -eq 0 ]];
then
echo "sucess"
else
echo "failed"
fi
#or
if [[ $? == 0 ]];
then
echo "sucess"
else
echo "failed"
fi