< BACK

Bash tips, tricks and code snippets

Output whitepace as control characters

E.g. to show the contents of the special variable IFS

printf "%q" "$IFS"

displays

$' \t\n'