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.

Required fields*

4
  • 1. Only gnu sed can do this via the e flag. 2. Even then, you're using the wrong tool for this job: awk, perl, python etc are much better tools for this task... Commented Sep 7, 2018 at 20:22
  • Or use dateutils, specifically dconv. Commented Sep 7, 2018 at 20:23
  • 1
    ... and btw, that's the RHS not the LHS... Commented Sep 7, 2018 at 20:28
  • Roger, RHS, I meant that... ;) Commented Sep 7, 2018 at 20:35