Converting files
When converting files, especially when you are in a script you want to preserve the filename and only change the extension. Here is a nice way to do it painlessly. For example:
f="a file a really long name.uif"; uif2iso $f ${f/uif/iso}
Now dont forget that ${"some string"/string/change} will not work. You need to have a variable.
Written by Chris Perivolaropoulos
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#