| | |
Uix Script Help Need
![]() |
•
•
Join Date: Nov 2008
Posts: 11
Reputation:
Solved Threads: 0
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:
But there are many other possible implementations for reaching the solution.
Also more comments for Project 3:
Yes, file status means permissions enable/disable.
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:
Shell Scripting Syntax (Toggle Plain Text)
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.
•
•
Join Date: Nov 2008
Posts: 11
Reputation:
Solved Threads: 0
0
#2 20 Days Ago
Can someone can help with this Unix Script? I'm kind of beginner with Unix Script. If someone can help with this?
THanks
Deven
THanks
Deven
Shell Scripting Syntax (Toggle Plain Text)
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:Shell Scripting Syntax (Toggle Plain Text)
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.
0
#3 19 Days Ago
What is ur script supposed to do but not doing ?
![]() |
Similar Threads
Other Threads in the Shell Scripting Forum
- Previous Thread: I need help with the cut command.
- Next Thread: how to remove junk character
| Thread Tools | Search this Thread |






