In my current directory, I have multiple subdirectories that contain files. I'm trying to move those files from the subdirectories to my current directory. To this end, I've created this inline bash program:
for i in */ ; do for j in $f* ; do mv "$i$j" $PWD ; done ; done
When I run this program, however, I'm prompted by the correct use format:
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
I'd appreciate any clarification as to why this is happening.
Thanks!