How to seek and destroy upside down characters? (in a script if need be)
how to get rid of upside down characters?
Ramones - ¡Adios Amigos! - 01 - I Don't Want to Grow Up.mp3 I haven't ever started anything yet, because i have no idea how to tell the system to look for upside down characters. I just want to rip them out of there and rename the files on the go without the upside down characters. |
I'd start with the hex or decimal representation and/or figure out how to type them to use in sed or awk.
I'm looking... |
thanks for the lead, I'll go seek that out...
copy/paste into the command line might work, too. yep, pretty smart idea... Code:
[userx@arcomeo ~]$ bob="Ramones - ¡Adios Amigos! - 01 - I Don't Want to Grow Up.mp3" |
Haven't figured out how to type them yet...pretty easy in Windows, but need to change the keyboard in Linux, and that's not working for me.
Did find these Code:
! EDIT A learning: On my Cinnamon desktop, typing Alt+number in an application that uses tabs, switches to that number tab. Very confusing when you're trying things in a multi-tab Firefox window! |
Quote:
thanks!!! |
You can also use tr to remove anything that isn't ASCII.
Code:
echo "Ramones - ¡Adios Amigos! - 01 - I Don't Want to Grow Up.mp3" | tr -cd '\000-\177' |
Quote:
But probably you'll have to change the range to \1-\177, 'cause \0 normally isn't a legal character in text. |
Probably not what you were looking for, but my 2 cents would be to make the files linux ready, ie remove extraneous characters that are not nix friendly:
Code:
echo "Ramones - ¡Adios Amigos! - 01 - I Don't Want to Grow Up.mp3" | sed -r 's/[^[:alnum:].]+/_/g' |
All times are GMT -5. The time now is 06:04 AM. |