我正在尝试更改从旧的手机中复制到我的新手机的照片的时间戳。我正在通过adb shell使用busybox的touch命令。该文件的名称是这样的:IMG_20131203_223152.jpg这样: # for i in `ls IMG_*` ;
do
d=`echo $i|cut -d"_" -f2` ;
t=`echo $i|cut -d"_" -f3|cut -d"."
我尝试了不同的变种 echo $0
echo $shell
echo $SHELL
ps -p $$
,但没有人能给出一个与众不同的输出。我可以做这样的事情,但它的丑陋和hackish的: if ls --help 2>&1 | grep BusyBox; then
echo "it is BusyBox"
else
echo "it is NOT BusyBox"
我有一个运行在BusyBox linux安装上的bash脚本。 当我运行我的脚本,在提示我要进入yes和下面的输出: Remove existing upgrades stored on this device?
Please answer yes or no.
Remove existing upgrades stored on this device? Please answe