Excerpt |
---|
The reason this occurs is because bash actually expands the asterisk to every matching file, producing a very long command line. There are some workarounds for cp, mv, rm by find, xargs, and etc. |
Table of Contents |
---|
...
mv
Below commands enables you to copy files to $target_dir with no restriction
...
Code Block |
---|
find . -name "*" -print0 | xargs -0 rm -r |
Code Block |
---|
find . -name "*" -delete |