I have a lot of files that have a shared pattern in their name that I would like to remove. For example I have the files, \"a_file000.tga\" and \"another_file000.tga\". I
#!/bin/bash ls | while read name; do echo mv $name ${name/$1//} done