Printf
Appearance
General
- Use printf over echo if you don't want a newline after it
- Syntax printf "format string" param1
Conversion Specifiers
- d: decomal
- c: character
- s: string
- % output the % character
Examples
- print "%s\n" hello
- prints hello with a newline
- print "%s %d \t %s "Hello" 15 people
- %s is Hello
- %d is 15
- %s is people