Ok I know that Im beginning to get on peoples nerves and I apologise for that! But can I ask one more question in relation to this script (please dont shout about it being a sh, Im sorry)
Why is this not working correctly now:
input: dosRename Mike *.mike
#!/bin/sh
for file
do
case $file in
*'*'*|?.)
if [ $file = *.[a-z] ]
then type=extension
elseif [$file = [a-z].*]
type=main
fi
echo $type
;;
*)
echo $file is a File
;;
esac
done
output:
$ dosRename Mike *.mike
Mike is a File
BLANKLINE:
Thank you all so much for the patience!
|