#!/bin/bash for i in *.nes; do mv "$i" $(basename "$i" .nes) done