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.