It's UWAweek 42 (2nd semester, week 12)

helpOSTS

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 the 2 articles in this topic
Showing 2 of 445 articles.
Currently 4 other people reading this forum.


 UWA week 16 (1st semester, week 7) ↓
SVG not supported

Login to reply

👍?
helpful
10:01pm Wed 17th Apr, Suan C.

Hi Michael, may I please check if this command echo 'fred cat' | s/[a-z][a-z]*/{&}/ is correct? As when i entered it in terminal it keeps coming back with error. i assumed there is a missing "sed" in the command? just wanted to check with you. Thanks!


SVG not supported

Login to reply

👍?
helpful
10:28pm Wed 17th Apr, Michael W.

"Suan Chuah" <20*0*5*2@s*u*e*t*u*a*e*u*a*> wrote:
> Hi Michael, may I please check if this command echo 'fred cat' | s/[a-z][a-z]*/{&}/ is correct? As when i entered it in terminal it keeps coming back with error. i assumed there is a missing "sed" in the command? just wanted to check with you. Thanks!
Hi Suan Not quite: echo 'fred cat' | sed -e 's/[a-z][a-z]*/{&}/' The single quote are also important (to top the info for sed being instead processed by Bash. Cheers MichaelW

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  8:08AM Aug 25 2024
Privacy policy