LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2016, 09:40 PM   #31
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware FreeBSD Win10 MX
Posts: 9,625

Rep: Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072

is
Code:
1 20week
a result you think your teacher is looking for? that is the only flaw I see if it would be concedered a flaw because it does not separate the 20-week to 20 week but gives 20week instead.

I changed only one tr and got this result instead. A separation of the 20 and week.
Code:
      2 prices
      2 a
      1 weeks
      1 week
      1 unusual
      1 two
      1 trend
      1 the
      1 steady
      1 rose
      1 penny
      1 past
      1 only
      1 of
      1 mostly
      1 in
      1 half
      1 gas
      1 gallon
      1 continuing
      1 an
      1 20
Can you guess which one it is? The answer is in this post somewhere.

Last edited by BW-userx; 04-07-2016 at 09:51 PM.
 
Old 04-07-2016, 10:28 PM   #32
sobey
LQ Newbie
 
Registered: Apr 2016
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
is
Code:
1 20week
a result you think your teacher is looking for? that is the only flaw I see if it would be concedered a flaw because it does not separate the 20-week to 20 week but gives 20week instead.

I changed only one tr and got this result instead. A separation of the 20 and week.
Code:
      2 prices
      2 a
      1 weeks
      1 week
      1 unusual
      1 two
      1 trend
      1 the
      1 steady
      1 rose
      1 penny
      1 past
      1 only
      1 of
      1 mostly
      1 in
      1 half
      1 gas
      1 gallon
      1 continuing
      1 an
      1 20
Can you guess which one it is? The answer is in this post somewhere.
I can not guess... I think you changed the tr ' ' '\n' string.
 
Old 04-07-2016, 11:24 PM   #33
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,769

Rep: Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052
Look at punctuation option and see if you can make it something else
 
Old 04-08-2016, 05:05 PM   #34
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware FreeBSD Win10 MX
Posts: 9,625

Rep: Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072Reputation: 2072
I already gave the answer before that post
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Seeking advice with shell script (homework) mmmm13 Linux - Newbie 10 11-25-2013 12:15 PM
I need advice to create a simple script (homework) anas_lko Linux - Newbie 12 02-01-2012 11:59 AM
Shell Script (Yes it is a homework question) smturner1 Linux - Newbie 11 11-02-2009 11:11 PM
Seeking advice on bash script satimis Programming 6 10-11-2004 12:01 PM
Seeking advice on script satimis Programming 1 10-05-2004 04:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration