On 2/9/21 9:25 AM, Rich Shepard wrote:
I found where OBS studio puts the logs (~/.config/obs-studio/logs/) where
they are listed with a space between the date and the time. When I try to mv
the spacey one to one without spaces I cannot:
$ mv 2021-02-09 06-56-46.txt 2021-02-09-06-56-46.txt
mv: target '2021-02-09-06-56-46.txt' is not a directory

The shell thinks you want to pass three arguments to mv. If you have spaces in filenames, the filename must be quoted, otherwise the shell thinks you are referring to two separate files.

mv '2021-02-09 06-56-46.txt' 2021-02-09-06-56-46.txt

or

mv 2021-02-09\ 06-56-46.txt 2021-02-09-06-56-46.txt


At least I think this is a shell thing. Regardless, you need to deal with the fact that your filename contains spaces. If you use tab filename completion in the shell, it will typically do the quoting for you.

galen
--
Galen Seitz
[email protected]
_______________________________________________
PLUG: https://pdxlinux.org
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to