News for hackers. Stuff that matters.
Re:What the GNU? by forgotpwd16 on Thursday September 30, 2021 @03:26PM (#28710255)
For your example, in bash you can do

    infile=input.png
    outfile="${infile/.png/.jpg}"
Yes, supposing it exists and you've permissions for it, you can use sed. Do that a dozen times and the calls to an external process add up to a significant time. But the real advantage is being easier to write and work with.

There are no comments on this comment yet.