Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help4407


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

A reminder that there will be no Zoom laboratory session on Friday 29th.
 
Assignment 2 and Clarifications.
 
Options:
RSS cloud
Jump to:

Output for Question 2 in Exercise 3

1 of 339 articles shown, currently no other people reading this forum.
photo
From: Rohit A.
Date: Thu 26th Mar, 9:54pm
Summary: sorcerer
Actions: 
        Login-to-reply
Hi, 

Q2 of exercise 3 states that we need to print the unique words from the text file  
unix-1969-1971.txt and defined words 'a sequence of one-or-more alphabetic 
characters' i.e No numbers and punctuation marks/symbols. 

I've used the following commands to print the same, but my solution words list 
starts with the following words: 

cmd: cat unix-1969-1971.txt | tr " " "\n" | tr -d '[:punct:] [:digit:]' | sort | 
uniq

o/t: 

a
about
actual
adapted
almost
also
an
and
another
as
ASR
at
barely
batch
be
beasts

Which is different from the mentioned output in question. 
The output as per the question should begin with the following words: 

ASR
Bell
But
Computer
He
John
Ken
Laboratories

Can anyone shine some light on where I went wrong? 

Thank you 

Related articles

Output for Question 2 in Exercise 3 (all 9) RSS
├─ THIS sorcerer Thu 26th Mar, 9:54pm, Rohit A.
├─ reply 1   Thu 26th Mar, 10:13pm, David M.
├─ reply 2   Thu 26th Mar, 10:17pm, David M.
├─ reply 3   Mon 30th Mar, 2:00pm, Khushboo S.
├─ reply 4   Mon 30th Mar, 2:15pm, Christopher M.
├─ reply 5 beer Thu 2nd Apr, 2:11pm, Rohit A.  O.P.
├─ reply 6   Thu 2nd Apr, 5:49pm, Khushboo S.
├─ reply 7   Thu 2nd Apr, 6:27pm, David M.
└─ reply 8   Thu 2nd Apr, 6:56pm, Christopher M.
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  8:27am May 24 2020