I'm trying every single code to copy all things inside a folder to another but i can't do it! I'm trying to use the code in my terminal emulator in my android device because i need that code in my application. This is the last code i use that doesn't work:
#!/bash/sh
srcdir="/data/app"
dstdir="/sdcard/prova1"
for f in ${srcdir}/*.apk
do
cp $f $dstdir $dstfile
done
and the terminal says:
: not found
' unespectedsyntax error: 'do
can anyone help me? These are the possibility that could be good:
1) Copy all files in the /data/app folder to /sdcard/prova1
2) Copy directly the folder app in prova1
3) Use a java code that do one of these two things..
I have root so i can do this operation.