Loop through all files, and run a search and replace with sed. for i in *.txt; do sed -i "s/Date::/date:/g" $i; done