I am trying to run a command example:
sudo mv /home/vaishnavi/Downloads/*.ttc /home/vaishnavi/Downloads/*.ttf /usr/local/share/fonts/ms_fonts/
It works fine in the terminal, but when I try to add this in a shell script (.sh
) I get an error saying:
mv: cannot stat '/home/vaishnavi/Downloads/*.ttf': No such file or directory
Simply, I want to move all the files of .ttf
and .ttc
type to /usr/local/share/fonts/ms_fonts/
, in this case. Frankly speaking, I am not so expert in shell scripts. Please explain to me what wrong I did and also an alternative to achieve my expected results.
My sample script:
sudo mv /home/vaishnavi/Downloads/*.ttc /home/vaishnavi/Downloads/*.ttf /usr/local/share/fonts/ms_fonts/
...
exit 0
.png
s for example, I want to move them using the script. – Ubuntovative is here Oct 14 '20 at 11:11