Student in need of Linux scripting help!

ironviper

New member
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. :)
 
Shame, not into Linux programming until next year :(, my degrees are in Networking and Windows based programming :(.

w3schools forum?
 
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.
 
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
 
Ive got to turn this junk in on Thursday the 6th.. :( ! Thanks for any help boys and girls. I'll keep trying it myself.
 
Its all good practice! I actually love shell scripting. Whether I am any good at it that is another kettle of fish :o)

I will let you decide once I have finished with your project hahaha!

Do I get graded? haha!
 
Yes you will be graded! You might even get gold stars, do your best :] hehe. And to zzhang, thanks for the link! I'm in that class right now I'll read up on that when I get home.
 
name='fusion1275' said:
Its all good practice! I actually love shell scripting. Whether I am any good at it that is another kettle of fish :o)

I will let you decide once I have finished with your project hahaha!

Do I get graded? haha!

Frankly, I say don't give it to him. Sounds to me he's just looking for someone to do his homework for him. If he really wanted help, he would've posted what he had and hoped someone could give him guidance
 
@ annihilus, Rather than being a pain you could have had a more constructive input.

I normally do all my assignments on my own.

Here's the problem. I don't have a linux machine at home, I've never used linux nor do I intend to. It is just a required course. I'm also flat broke and I could not afford the stupid 80$ book. www3schools can only teach you so much, and it doesn't help that my professor is an indian idiot who mutters more than he teaches.

To anyone else still willing to help, drop me a line, I appreciate it.
 
Hey, Ignore what they say. SOME people are willing to help no matter what the background story might be - good or bad.

Anyway drop me a pm with your email address and I will ping you over what I have done so far. Its a start and something for you to either build on or learn from. Or even delete if you think its total horsesh*t :)

rgds
 
Back
Top