LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-13-2008, 08:31 AM   #1
gsel
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Rep: Reputation: 0
Question help create this files


the institute is plaining to computerize the tass related to its student management.i hv been asked to implement the new computerized system in the institute.need to use shell scripting to create student management software as the computers in the institute run on the linux operating systems.the following task-list has been
*create 4: files(1st sem,2st sem,3st sem,4st sem)to store the semester-wise record of all students
*whenever a new student joins e institute,open the respective semester file and record the following details about the student:
student id(generate automatically)
f-name
l-name
stream id(CS/IT/ET/EE/EI/ME/CE)
PHONE
CITY
STATE
ZIPCODE
*whenever student leaves the institute,delete th his/her record from the respective file
*whenever student detail is changed,make appropriate changes in the respective student file

Last edited by gsel; 02-26-2008 at 07:34 AM.
 
Old 02-13-2008, 08:41 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Homework!!!

You will need to give us more detail.....and tell us what exactly is the question. e.g. do you need to know how to create the file, how to write date to the file, how to set up the fields, etc.

Also, where are you in the class---eg what commands/language are you expected to know?
 
Old 02-15-2008, 04:23 AM   #3
gsel
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Original Poster
Rep: Reputation: 0
the institute is plaining to computerize the task related to its student management.i hv been asked to to implement the new computerized system in the institute.need to use shell scripting to create student management software as the computers in the institute run on the linux operating systems.the following task-list has been
*create 4: files(1st sem,2st sem,3st sem,4st sem)to store the semester-wise record of all students
*whenever a new student joins e institute,open the respective semester file and record the following details about the student:
student id(generate automatically)
f-name
l-name
stream id(CS/IT/ET/EE/EI/ME/CE)
PHONE
CITY
STATE
ZIPCODE
*whenever student leaves the institute,delete th his/her record from the respective file
*whenever student detail is changed,make appropriate changes in the respective student file
 
Old 02-15-2008, 02:21 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Firstly I think it's conceptually flawed to delete the record
as soon as the student left (a retention period of a year or
so would still seem quite short).

Secondly, using flat files for this seems odd if the number
of students isn't very small. Have you thought about an OpenSource
RDBMS, like PostgreSQL?
It would pretty much naturally take care of the data integrity
and save you re-inventing the wheel...


Cheers,
Tink
 
Old 02-15-2008, 02:24 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Tink;
That is a very clever way of responding to a homework question.....I must try that on the next episode....
 
Old 02-15-2008, 02:52 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by pixellany View Post
Tink;
That is a very clever way of responding to a homework question.....I must try that on the next episode....;)
Well, my philosophy has always been not to give
people what they're asking for but what I think
they need ;} ... works in pretty much any situation.


Cheers,
Tink
 
  


Reply

Tags
gsel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
slack12: can't create md-files pr144 Slackware - Installation 2 09-12-2007 10:39 AM
Can't delet or create files... Babe963 Linux - General 13 01-12-2007 05:54 PM
Samba: "homes" share, cannot create directories, can create files Herg Linux - Software 1 09-14-2006 09:48 AM
Create several files? peman Linux - Newbie 12 05-07-2004 10:56 AM
Linux, Create Dirs=no, Create files=yes. Possible? tisource Linux - General 4 01-12-2004 11:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:22 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration