Batch rename osx12/20/2023 ![]() ![]() Since the rename command didn't work for me for unknown reasons and i do not get any other answers for my question, i myself tried to make an effort to make the rename possible. Resulting He's doing the hokus-pokus with the infile since linux would have it's own issues with handling special characters when moving the filename. OutfileNOss=`echo $outfileNOUE| sed -e 's|ß|ss|g'`Įcho "filename changed for " $infile " in " $outfile OutfileNOUE=`echo $outfileNOAE| sed -e 's|Ü|UE|g'` OutfileNOAE=`echo $outfileNOOE| sed -e 's|Ä|AE|g'` OutfileNOOE=`echo $outfileNOue| sed -e 's|Ö|OE|g'` OutfileNOue=`echo $outfileNOae| sed -e 's|ü|ue|g'` OutfileNOae=`echo $outfileNOoe| sed -e 's|ä|ae|g'` OutfileNOoe=`echo $outfileNOSPECIALS| sed -e 's|ö|oe|g'` ![]() OutfileNOSPECIALS=`echo "$"|sed -e 's||_|g'` Looking for a handsome script to remove special characters as well as german special characters, replacing them with universal ones to not remove useful information I've updated the last version of the script which had some minor issues resulting in: #!/bin/bash ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |