how to mv the files one by one to another folder...
using scripts...
Not at a time ...
Plz hlp mi
Looks like homework to me...
Why would one want to move files one-by-one otherwise?
I started learning alrgorithms by writing down simple procedures such as "How to cook my egg for breakfast to dip my bread in..." how to make tea etc...
So describe what has to be done in order to achieve the desired result in procedural form
or any algorithmic language, post it here and we will comment it
while running the script....i want to take one file ...from files directory...to processing dir...
note: Script can process only one file at a time..
plz reply ASAP
can use the for loop to achieve it:
for file in $PATH1/*
do
file=`basename $file`
mv $PATH1/$file $PATH2
/* call ur second script here which process one file at a time OR paste ur code*/
done
the script i tried ...but it's not working
wat's the base name...
files=`find . -type f`
for filestomove in $files
do
echo $filestomove
mv $filestomove /path/to/move
done
echo "All the files are moved to specific directory"
if you want to move the files one by one just use the command mv for that
mv filetomove /path/to/move
Thanks
Namish Tiwari