Python
Database
Operating System
Programming
Linux Command
Toolkit
Other
Keyboard Shortcuts
Open sidebar
Open user menu
Guess
Search
Dart
HTML Canvas
Redis
Bash
JavaScript
Awk
Awk Formatted Printing
Usage
#
Right align
awk 'BEGIN{printf "|%10s|\n", "hello"}' | hello|
#
Left align
awk 'BEGIN{printf "|%-10s|\n", "hello"}' |hello |
Comments
Add your comment
Post
Related
Also see
Miscellaneous
Awk Formatted Printing
Awk Loops
Awk Conditions
Awk Arrays
Awk Functions
Awk Operators
Awk Variables
Getting Started