#!/bin/bash for i in *.mod; do xxd -p "$i" > "$i"txt_t ; done for i in *.modtxt_t; do dd if="$i" of="$i".modtxt conv=ucase ; done for i in *.modtxt_t; do rm "$i" ; done