move only if file exists in a shell script February 20, 2023 by Tarik One-liner: [ -f old ] && mv old nu