I want to copy a file to another disk, when completed delete it, and create a symlink back to it in the original location.
example: copyandlink.sh somefile.iso
#!/bin/bash
set -e
cp $1 /media/storage/linked/ &&
rm $1 &&
ln -s /media/storage/linked/$1 ./
or something like that.