さっき WSL から Windows 上の adb.exe を使ってたら文字列操作でわけがわからないことになってハマったのでメモ。
結局 sed
で \r
(CR) を消してあげれば動きました。
adb.exe shell ls $remote_dir | sed -e 's/\r//g'
adb 以外でも気をつけたほうがよさそうですね 🤔
More than 3 years have passed since last update.
さっき WSL から Windows 上の adb.exe を使ってたら文字列操作でわけがわからないことになってハマったのでメモ。
結局 sed
で \r
(CR) を消してあげれば動きました。
adb.exe shell ls $remote_dir | sed -e 's/\r//g'
adb 以外でも気をつけたほうがよさそうですね 🤔
Register as a new user and use Qiita more conveniently