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).
 
Options:
RSS cloud
Jump to:

Output for Question 2 in Exercise 3

1 of 390 articles shown, currently no other people reading this forum.
photo
From: Rohit A.
Date: Thu 26th Mar 2020, 9:54pm
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   Thu 26th Mar 2020, 9:54pm, Rohit A.
├─ reply 1   Thu 26th Mar 2020, 10:13pm, David M.
├─ reply 2   Thu 26th Mar 2020, 10:17pm, David M.
├─ reply 3   Mon 30th Mar 2020, 2:00pm, Khushboo S.
├─ reply 4   Mon 30th Mar 2020, 2:15pm, Christopher M.
├─ reply 5 🍺 Thu 2nd Apr 2020, 2:11pm, Rohit A.  O.P.
├─ reply 6   Thu 2nd Apr 2020, 5:49pm, Khushboo S.
├─ reply 7   Thu 2nd Apr 2020, 6:27pm, David M.
└─ reply 8   Thu 2nd Apr 2020, 6:56pm, Christopher M.
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  9:57am Nov 18 2020