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
  • But with any of those methods I get filename with the format and I need to get only the filename and put a new format manually. Commented Aug 4, 2012 at 6:30
  • Ah, that makes sense. I've updated my answer. Commented Aug 4, 2012 at 6:43
  • @rush: There will be edge cases, e.g. for a file named my.file.tar.gz. Commented Aug 4, 2012 at 7:02
  • @donothingsuccessfully there was a missing dot symbol in the last sed and awk. Fixed. Thank you. Commented Aug 4, 2012 at 7:09