Enviado em 29/11/2020 - 19:25h
#!/bin/bash
log="/tmp/fonte.log"
rm -Rf "$log"
arquivo=$(zenity --file-selection --title="Selecione um arquivo" --file-filter="*.txt" 2> /dev/null)
while read fonte
do
if [ -e "/usr/share/fonts/" ]; then
find /usr/share/fonts/ -iname "$fonte"
if [ $? -eq 0 ]; then
echo "Fonte $fonte já existe em /usr/share/fonts/ !" >> "$log"
fi
fi
if [ -e "$HOME/.fonts/" ]; then
find $HOME/.fonts/ -iname "$fonte"
if [ $? -eq 0 ]; then
echo "Fonte $fonte já existe em $HOME/.fonts/ !" >> "$log"
# Remove a fonte da pasta $HOME/.fonts/ caso já existe na pasta /usr/share/fonts/
# rm -Rf
fi
fi
done < "$arquivo"
gedit "$log"
Atualizando o Passado: Linux no Lenovo G460 em 2025
aaPanel - Um Painel de Hospedagem Gratuito e Poderoso
O macete do Warsaw no Linux Mint e cia
Visualizar arquivos em formato markdown (ex.: README.md) pelo terminal
Dando - teoricamente - um gás no Gnome-Shell do Arch Linux
Como instalar o Google Cloud CLI no Ubuntu/Debian
Mantenha seu Sistema Leve e Rápido com a Limpeza do APT!
Procurando vídeos de YouTube pelo terminal e assistindo via mpv (2025)
Iinstalar o Scanner Kodak i940 no Linux Mint 19/20? (4)
Pastas da raiz foram para a área de trabalho [RESOLVIDO] (11)
Será que eu deveria apreender C/C++ para desenvolver para Linux? (4)