Write a shell script for renaming each files in the directory such that it will have the current shell PID as an extension. the shell script should ensure that the directories do not get renamed.
for name in `ls *.txt` do i=`basename $name txt` mv $name ${i}sh done