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
  • Could you explain your answer to others learning from? What "s/ras\.// sw.ras.*" do? I guess I know it but I want to be sure, and other can learn too. Second option same way. Commented Mar 3, 2012 at 16:47
  • 1
    @H_7 Good idea, I've added an explanation. Commented Mar 3, 2012 at 18:09
  • Is ${file/ras./} used a lot these days? If I have to delete a substring I use sed with substitute s// which seems more logical or rational. Commented Jul 11, 2021 at 7:07
  • Just read this and understand that sed for filename-change is even more cryptic and should not be used at all. Commented Jul 11, 2021 at 19:39