Article 546S6 [SOLVED] bash escape dash

[SOLVED] bash escape dash

by
qrange
from LinuxQuestions.org on (#546S6)
I get this error:

Code:$ printf "-4"
bash: printf: -4: invalid option
printf: usage: printf [-v var] format [arguments]
is there a way to escape the dash sign, so its not seen as option?
I need it for swaks command instead of printf.

Thanks.latest?d=yIl2AUoC8zA latest?i=FC_VQnf9dwU:vKEyLmx8xZU:F7zBnMy latest?i=FC_VQnf9dwU:vKEyLmx8xZU:V_sGLiP latest?d=qj6IDK7rITs latest?i=FC_VQnf9dwU:vKEyLmx8xZU:gIN9vFwFC_VQnf9dwU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments