|
Use echo to generate simple output
- echo 'Welcome to Red Hat Linux paradise!'
- echo -n "Please enter the file name: "
Use printf to generate formatted output
- printf "The result is %0.2f\n" $RESULT
- Syntax similar to C printf()function
- Does not automatically put a newline at the end of the output.
|