It's UWAweek 24 (1st semester, 2nd exam week)


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 selected article
Showing 1 of 439 articles.
Currently 1 other person reading this forum.

 UWA week 15 (1st semester, week 6) ↓
SVG not supported

Login to reply

10:08am Mon 8th Apr, Michael W.

Hi, There is a little confusion here. For all Bash messages you need to use echo. The only question then is where the message is to be printed. echo "Fred here" will print to stdout (or /dev/stdout). That is the default destination, so you don't have to specify it. However, if you want it to be an error message, and for it to go to standard error , e.g. echo "Error: fred here" > /dev/stderr then you have to explicitly send it to /dev/stderr. 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  5:07AM Sep 06 2023
Privacy policy