I have an alias for a python script that basically converts some files into another format, I want to be able to remove some intermediate format that this script generates as a post process after running the python script.
My alias to my python script looks like this:
alias convert='python /filepath/convert.py'
I run it like this within the directory containing the files I want to convert:
convert *.RW2
The script converts all .RW2 files into .tiff files but generates an intermediate .dng file which I don't need to keep, it's a temp file.
How would I simply append a delete to the alias? If I modify the alias it seems to interfere with the arguments for the .py script, for example this does not work:
alias convert='python /filepath/convert.py && rm *.dng'