Design and Develop a shell script which removes empty files from PWD and changes other files

AIM:

Design and Develop a shell script which removes empty files  from PWD and changes other files

Program:

Times stamps to current time
# !/bin/sh
for x in
do
if [-f  $x ]
then
if [-s  $x ]
then
 touch $x
else
 rm $x
 fi
 fi
done

Output:

Student@ubuntu:~$cat f1
^z
Student@ubuntu:~$ sh rmf.sh f1
Student@ubuntu:~$cat f1
Cat:f1:No such file or Directory