Go Back   Overclock3D Forums > [OC3D] Hardware & Software > Software Section > OS & Apps
Reply
 
Thread Tools Display Modes
 
  #1  
Old 28-10-08, 08:20 PM
ironviper ironviper is offline
Newbie
 
Join Date: Apr 2008
Posts: 55
Student in need of Linux scripting help!

Well I know this is probably the last thing you want to be reading but I have indeed been struggling in my intro to linux class. And I have an assignment due 10/30 that is kicking my bum.

I will post details.

Write a bash shell script that presents work information of employees of a department from a company data set. The script file should be called "extract" and should be invocable as

./extract

from the command line. The company data set layout is presented in six data files with the following field descriptions.

The script should accept a name of a project (ProductX/ProductY/ProductZ/Computerization/Reorganization/Newbenefits) and output

* the name of the project

* the total number of hours worked by all employees on that project

* the last name of each employee work for the project along with the last name of his/her department's manager (not supervisor)

Also, the script should prompt the user and repeat the task for another project name if requested.

Here is a sample output for the script. You may need to use the following Linux commands: awk, cut, echo, for, grep, if, join, let, read, sort, tr, trap, wc, while . Make sure to sort the input files of join commands on the join field.

Please let me know if you cant access the files, thanks for the help if any.

Reply With Quote
  #2  
Old 28-10-08, 08:52 PM
Youngie1337 Youngie1337 is offline
OC3D Elite
 
Join Date: Feb 2008
Location: Rugby
Posts: 2,625
Shame, not into Linux programming until next year , my degrees are in Networking and Windows based programming .

w3schools forum?
Reply With Quote
  #3  
Old 28-10-08, 10:38 PM
ironviper ironviper is offline
Newbie
 
Join Date: Apr 2008
Posts: 55
Darn thanks anyway, any one else!! Come on you smart people I know you're out there
Reply With Quote
  #4  
Old 03-11-08, 09:33 PM
ironviper ironviper is offline
Newbie
 
Join Date: Apr 2008
Posts: 55
bump?
Reply With Quote
  #5  
Old 03-11-08, 10:39 PM
fusion1275 fusion1275 is offline
Newbie
 
Join Date: Mar 2008
Posts: 87
You do know we have things called databases to store that sort of info!!

Anyway cant access the sample output link you have sent. please cut n paste and I will have a go.
Reply With Quote
  #6  
Old 04-11-08, 01:08 PM
ironviper ironviper is offline
Newbie
 
Join Date: Apr 2008
Posts: 55
Hi thanks, I fixed the sample output link, were you able to open the others?
Reply With Quote
  #7  
Old 04-11-08, 01:18 PM
fusion1275 fusion1275 is offline
Newbie
 
Join Date: Mar 2008
Posts: 87
Hi, still cant access that output. I am being sent to this url:

http://www.filefactory.com/file/e2ed87/n/asg3out_pdf

but it has no link to any file.

Yes I can open the others.
Reply With Quote
  #8  
Old 04-11-08, 01:21 PM
ironviper ironviper is offline
Newbie
 
Join Date: Apr 2008
Posts: 55
Weird I just tried it and it works, you have to scroll down and hit Download with File factory basic, and itll tell you to input the confirmation code, and then the download link comes up. If not PM me your e-mail and I'll send you the pdf
Reply With Quote
  #9  
Old 04-11-08, 02:47 PM
Youngie1337 Youngie1337 is offline
OC3D Elite
 
Join Date: Feb 2008
Location: Rugby
Posts: 2,625
I just uploaded for you on my ftp.

http://hiddentallent.com/asg3out.pdf
Reply With Quote
  #10  
Old 04-11-08, 02:55 PM
ironviper ironviper is offline
Newbie
 
Join Date: Apr 2008
Posts: 55
Thank you Youngie!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump






All times are GMT. The time now is 01:47 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.