Can anybody help me with a unix script project that I have no clue on starting it, and also I 'm not that much familiar with unix scripting. Don't get me wrong have little bit experience with Linux, but when comes to script I'm just a beginner. If any someone can assist me with project that would be great. At the bottom is the description of the project:

PROJECT 3

Create your own shell that will allow you to change file status and copy from one directory to another.


If someone can help with this project.

Thanks
Deven


The menu structure I mentioned can be created with the following template:

echo "Please choose a folder or file. If you choose a folder you will move into that folder. Enter nothing to exit."

read choice

if [ "$choice" != "" ]; then

if [ -f $choice ]; then

echo "$choice options:"
echo "Type hide to hide file."
echo "Type copypro to copy protect."
echo "Type read to set ready only."
echo "Type copy to copy a file from one directory to another."
echo "Type exit to choose a different file."
read op

case "$op" in

hide)
# code for hide
copy)
# code for copy
copypro)
# code for copypro
read)
# code for read
exit)
# code for exit
*)
# code for error
esac
else
cd $choice
fi

fi

But there are many other possible implementations for reaching the solution.
Also more comments for Project 3:

Yes, file status means permissions enable/disable.

Can someone can help with this Unix Script? I'm kind of beginner with Unix Script. If someone can help with this?

THanks
Deven

f_print_msg{
   echo "Please choose a file or directory. If you choose a directory you will move into that folder. Enter nothing to exit."
   read -p "$(pwd) => " choice


f_print_msg()
while [ "$choice" != ""]
do
## Enter your code here
echo "$choice options:"
                      echo "Type hide to hide file."
                      echo "Type copypro to copy protect."
                      echo "Type read to set ready only."
                      echo "Type copy to copy a file from one directory to another."
                      echo "Type exit to choose a different file."
                                            read op

                      case "$op" in

                      hide)
                          mv "$choice" ".$choice";;
                      copy)
                          cp "$choice" "~/$choice";;
                      copypro)
                          chmod 333 "$choice" ;;
                      read)
                         chmod 555 "$choice" ;;
                      exit)
                         exit
                      *)
                         # code for error
          esac
          else
                      cd $choice
          fi

          fi



f_print_msg()
done

}

Can anybody help me with a unix script project that I have no clue on starting it, and also I 'm not that much familiar with unix scripting. Don't get me wrong have little bit experience with Linux, but when comes to script I'm just a beginner. If any someone can assist me with project that would be great. At the bottom is the description of the project:

PROJECT 3

Create your own shell that will allow you to change file status and copy from one directory to another.


If someone can help with this project.

Thanks
Deven


The menu structure I mentioned can be created with the following template:

echo "Please choose a folder or file. If you choose a folder you will move into that folder. Enter nothing to exit."

read choice

if [ "$choice" != "" ]; then

if [ -f $choice ]; then

echo "$choice options:"
echo "Type hide to hide file."
echo "Type copypro to copy protect."
echo "Type read to set ready only."
echo "Type copy to copy a file from one directory to another."
echo "Type exit to choose a different file."
read op

case "$op" in

hide)
# code for hide
copy)
# code for copy
copypro)
# code for copypro
read)
# code for read
exit)
# code for exit
*)
# code for error
esac
else
cd $choice
fi

fi

But there are many other possible implementations for reaching the solution.
Also more comments for Project 3:

Yes, file status means permissions enable/disable.

This article has been dead for over six months. Start a new discussion instead.