linux - Rename script in android (no-root) -
i trying run script in android phone (no-root) below task.
get camera
directory , copy *.mp4
files camera
backups
, backups
directory , rename *.mp4
*.nomedia
, exit shell.
code
cd / cd /storage/emulated/0/dcim/camera/ cp *.mp4 /storage/emulated/0/backups/ cd / cd /storage/emulated/0/backups/ mv *.mp4 *.nomedia exit
output
with file video-12-03-2015.mp4
in camera
directory, script rename file *.nomedia
looking video-12-03-2015.nomedia
name , happening 1 file. not working multiple files if in camera
directory.
please help.
copy mp4's /storage/emulated/0/dcim/camera/ /storage/emulated/0/backups/
cp /storage/emulated/0/dcim/camera/*.mp4 /storage/emulated/0/backups/
trim "mp4" extension , replace "nomedia":
for f in /storage/emulated/0/backups/*.mp4; mv -- "$f" "${f%.mp4}.nomedia" done
Comments
Post a Comment