LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 07: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 06:34 AM.
 
Old 02-13-2008, 07:41 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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, 03: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, 01:21 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 01:24 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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, 01:52 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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



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

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

All times are GMT -5. The time now is 04:42 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