removing emoji....best to just never download it in the first place. With yt-dlp use --restrict-filenames
emoji="\U1f300-\U1f5ff\U1f900-\U1f9ff\U1f600-\U1f64f\U1f680-\U1f6ff\U2600-\U26ff\U2700-\U27bf\U1f1e6-\U1f1ff\U1f191-\U1f251\U1f004\U1f0cf\U1f170-\U1f171\U1f17e-\U1f17f\U1f18e\U3030\U2b50\U2b55\U2934-\U2935\U2b05-\U2b07\U2b1b-\U2b1c\U3297\U3299\U303d\U00a9\U00ae\U2122\U23f3\U24c2\U23e9-\U23ef\U25b6\U23f8-\U23fa"
for f in *.m4a ; do fnew=$(echo "$f" | sed -e "s/[$(printf $emoji)]//g" -e 's/ / /g'); mv "$f" "$fnew"; done
this works but only in zsh and can't put it in a bash script. Supposedly works in bash > 4.x though.
for f in *.m4a ; do fnew=$(echo "$f" | sed -e "s/[$(printf $emoji)]//g" -e 's/ / /g'); mv "$f" "$fnew"; done
this one worked for some emoji but not all
this one I ended up using to get rid of emoji in Transnomino (Mac free app renamer) regex
[\p{So}\p{Cs}]
and takes out emojis.
>>Click here to continue<<