During the course of some testing, I ran the bast script
for file in *; do mv -v "$file" "$file#_*" done
or something along those lines. The plan was to remove a prefix from directory names but I accidentally ran it in my home directory rather than in the test directory I had created...
My understanding is that all of the files inside directories should be "safe" (as in, not deleted), but that I now have no way to access them via a directory structure.
Is there a way to recover these files?
Thanks in advance.
UPDATE It appears my memory was incorrect: the command in the
for loop was actually
echo mv .... Somehow, all the directories and file in ~ were moved to my Videos directory, but appear to be intact.