Hi guys i am new to this. Hoping that you could help me I am writing this (should be simple) bash script to check if the filetype is txt or zip. but it does not work
the code is:
#!/bin/sh
echo "please insert file"
read file
if [ $file == *.txt ]
then
emacs $file
elif [ $file == *.zip ]
then
zip $file
fi