I have a Galaxy S6 running Android 7.0:
zeroflte:/ $ getprop ro.build.version.release
7.0
There exists a file which uses the Unicode codepoint U+1F308
(RAINBOW
) in its name:
zeroflte:/ $ ls -al /sdcard/tmp
total 1024
drwxrwx--x 5 root sdcard_rw 4096 2020-07-09 05:44 .
drwxrwx--x 49 root sdcard_rw 4096 2020-06-25 07:27 ..
-rw-rw---- 1 root sdcard_rw 17 2018-04-25 20:47 123.org
drwxrwx--x 2 root sdcard_rw 4096 2020-07-09 05:54 crypt
-rw-rw---- 1 root sdcard_rw 9 2020-07-08 13:26 🌈.gpx
zeroflte:/ $
However, I have no idea how to use this file name in an adb shell command. I would like to apply ls -1 -d -l /sdcard/tmp/\🌈.gpx
or similar, but I cannot enter the RAINBOW
char. Any idea how to do this?
ls -1dl /sdcard/tmp/*.gpx
? Or rename the file to remove special character.Alt +
orCtrl + Shift + U
or whatever key combination applicable to your OS for entering unicode characters?adb shell
to access files on Android devices. So I need something which could be used in a script.zeroflte:/ $ ls -dl1 /sdcard/tmp/$(printf '\U0001f308').gpx ls: /sdcard/tmp/\U0001f308.gpx: No such file or directory