test.sh
#!/bin/sh
for file in `ls`;do
if [ -x "$file" ]; then
if [ "$file" != "test.sh" ];then
rm -rf $file
fi
fi
done
test.sh
#!/bin/sh
for file in `ls`;do
if [ -x "$file" ]; then
if [ "$file" != "test.sh" ];then
rm -rf $file
fi
fi
done