ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
CME 1003 Shell Script Assignment
Project Specification
A shell script is a script written for the shell, or command line interpreter, of an operating system. Typical operations performed by shell scripts include file manipulation, program execution, printing text etc.
Shell : In computing, a shell is a piece of software that provides an interface for users. In this project, you should prepare a Linux shell script which performs following operations:
Your script will ask user 4 options : Create, Move, Delete, Copy. The option will be applied to
Directories and/or Files which contain given name.
Examples:
Create : Reads a directory name and number from user and creates directories.
Example : directory name = student
number = 13
student1, student2, student3... student13 directories will be created by this option.
While creating each folder, script will ask user directory permissions. (permissions could
be given by number values like; 775 for rwxrwxr-x)
( NOTE: If directories exist, inform user!)
Move : Name and new location is taken from user.
Copy : Name and new location is taken from user.
Delete : Name is taken from user.
NOTE : Each operation will be logged in log.txt such as:
Example : Directory documentation_13.11.2007 is moved to upper directory
All of these options will be listed as a menu for user. At the end of each operation menu should
be shown unless user selects Exit option. The shell script should display appropriate messages
such as warning, information.
Example : If given filename does not exist, warn user.
NOTE : The wildcards should be accepted by your shell script as user input !
CME 1003 Shell Script Assignment
Project Specification
A shell script is a script written for the shell, or command line interpreter, of an operating system. Typical operations performed by shell scripts include file manipulation, program execution, printing text etc.
Shell : In computing, a shell is a piece of software that provides an interface for users. In this project, you should prepare a Linux shell script which performs following operations:
Your script will ask user 4 options : Create, Move, Delete, Copy. The option will be applied to
Directories and/or Files which contain given name.
Examples:
Create : Reads a directory name and number from user and creates directories.
Example : directory name = student
number = 13
student1, student2, student3... student13 directories will be created by this option.
While creating each folder, script will ask user directory permissions. (permissions could
be given by number values like; 775 for rwxrwxr-x)
( NOTE: If directories exist, inform user!)
Move : Name and new location is taken from user.
Copy : Name and new location is taken from user.
Delete : Name is taken from user.
NOTE : Each operation will be logged in log.txt such as:
Example : Directory documentation_13.11.2007 is moved to upper directory
All of these options will be listed as a menu for user. At the end of each operation menu should
be shown unless user selects Exit option. The shell script should display appropriate messages
such as warning, information.
Example : If given filename does not exist, warn user.
NOTE : The wildcards should be accepted by your shell script as user input !
Wow...the single most blatant 'do-my-homework-for-me-because-I'm-lazy' post I've ever seen.
Since you're taking classes, try asking for some definitions of what "help" means. In this case, it means that YOU, have to DO your own homework. The 'help' part comes in when you actually DO something...you then post it here, and explain what you're doing, and where/why you're stuck, and then we assist (help) you get past your problem.
Otherwise, do your own homework. If you can't, tell your teacher you need help. If you want someone to do your work for you, don't bother taking the class, since you won't learn anything, and be as clueless when you come out, as you were when you went in.
I tend to be pretty lenient when it comes to homework posts so long as I see some effort and you're having difficulty moving forward. Here, I see no effort at all.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.