I need to move the files of a directory to another directory.I get stat error when I used the following program.
for i in dir1/*.txt_dir; do
mv $i/*.txt dir2/`basename $i`.txt
done
error message
mv: cannot stat `dir1/aa7.txt_dir/*.txt': No such file or directory