how can i retrieve the data from the webpage and store it in data base sqlite3 using bash script

Write a script that communicates with the ECU timetable website at

•      The script will accept a list of unit codes as standard input and the year as an argument.
•      The script will gather a list of all results for the particular unit code and store the results in an sqlite3 database
•      The data stored will include
o      The name & unit code of the unit
o      The activities for the unit, including start time, finish time, description (lecture/tute/workshop etc), location & period (Semester 1, Semester 2, etc)
•      On completion of data gathering the script will present the information gathered as standard output, this should appear in a human readable format.

The following will be used to test your submissions. You should use this to make sure your script works prior to handing it in.

A file named units.txt that contains the following:

The following command will be executed to test your program, no additional information will be entered.
$ cat units.txt | ./ 2012
vishnu kalakotaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mark BullockQA EngineerCommented:
You can use wget to get the web page and save it in a file.
You can use cut or awk to parse the html.
Use command line shell for SQLite to create the database and insert the records.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
vishnu kalakotaAuthor Commented:
Thank you very much
Gerwin Jansen, EE MVETopic Advisor Commented:
Are you a student of Edith Cowan University?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.