LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 12-23-2011, 08:24 AM   #1
ubun
LQ Newbie
 
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
A Little Help About Shell Script


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 !
 
Old 12-23-2011, 09:02 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
LQ is not a do-your-homework-for-you service
 
1 members found this post helpful.
Old 12-23-2011, 03:33 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ubun View Post
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.

Last edited by TB0ne; 12-23-2011 at 03:35 PM.
 
Old 12-23-2011, 04:51 PM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
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.
 
2 members found this post helpful.
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Executing a Shell script with 654 permissions inside another shell script. changusee2k Linux - Newbie 2 06-07-2011 07:58 PM
Shell script calling shell script - List of all nikunjbadjatya Programming 7 04-13-2011 06:27 PM
pass variable from one shell script into another shell script xskycamefalling Programming 9 10-03-2009 01:45 AM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration