Deleteing Original File After Creating Another
cut -d',' -f5,8 "$file" &gt; "$saveName" &amp;&amp; rm "$file"


Using &amp;&amp; (the shell 'and' operator) instead of ; as the command separator means that the rm command is only executed if the cut command succeeds.