Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 2
    That's because the first argument to printf is a format string. If it contained %s, %d, etc., the remaining arguments will be printed accordingly. How do you guarantee you won't fat finger the first argument? Commented Jun 13, 2019 at 4:29
  • Use single quotes rather than double quotes, it means that dollar is not special so one less thing to fat finger. However reading the fine manual is always a good idea. Commented Jun 13, 2019 at 4:36