It's UWAweek 48


This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 564 articles.
Currently 2 other people reading this forum.

 UWA week 19 (1st semester, week 10) ↓
SVG not supported

Login to reply

4:38pm Thu 12th May, Daniel S.

To understand Michael's approach, please go back and look at his word counter code from the lectures. His tips on solving this assignment are very similar to how he has made his word counter. - "a sequence of things you want to keep": Michael is suggesting that you remove everything from the file except the words/characters/whatever that you are going to count, one per line - "a stream of tokens": Michael is suggesting that you convert each thing into a corresponding token Imagine you have a file containing the following string: "Jack, and Jill" As a sequence of things, one per line: Jack , and Jill Now, as a sequence of tokens: word comma word word The tokens can then be easily counted using awk or even grep (but awk is more efficient).

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy