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: David M.
Date: Thu 26th Mar 2020, 10:13pm
Actions: 
        Login-to-reply

 

"Rohit Atri" <22*1*1*[email protected]*u*e*t*u*a*e*u*a*> wrote:

> 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
├─ original   Thu 26th Mar 2020, 9:54pm, Rohit A.
├─ THIS   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: 11:27am Sep 21 2020