#!/usr/bin/env bash for file in *; do mv "${file}" "${file/\~/}" 2> /dev/null; done