By mistake, I have copied 100 files using the cp command as
$ cp file1 "/data/ file1"
$ cp file2 "/data/ file2"
note:- there is a space between /data and file2, file1
Within the /data directory, I can see the files but not able to copy or move. File not found the error is while accessing/copy/move those files.
$ cd /data/ ; ls
file1
file2
$ cp file1 /data1/
can not stat file1
How to resolve the issue.
for
loop is usually the better option, but sure you can do it ... See @bxm's answer for an idea on how to do it. – pLumo Nov 06 '19 at 14:02