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.

4
  • 2
    That's an unfortunate example in that date could do the same thing with date +'Today is %a %b %e %H:%M:%S %Z %Y' and also because printf is preferable over echo when outputting variable data. Commented Jun 10, 2018 at 19:58
  • Also, date | sed 's/^/Today is /'... Using a command substitution to display data using echo is simply not a good or even idiomatic example of the use of command substitutions. Commented Jun 11, 2018 at 6:58
  • vfbsilva you might want to change the example to use printf and not use date? Commented Jun 11, 2018 at 14:07
  • I might, problem is than I will be answering another questions. You can accept the next answer I couldn't care less the point is im not here to discuss best practices I was just showing a concept which imho was properly presented than this became code golfing and I'm not on the mood Commented Jun 11, 2018 at 18:26