While using flags for echo and printf, place the flags before any strings in the command, otherwise Bash will consider the flags as another string.
Linux Shell Scripting Cookbook - Third Edition
by Shantanu Tushar
Published by
Packt Publishing, 2017
While using flags for echo and printf, place the flags before any strings in the command, otherwise Bash will consider the flags as another string.