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"
Como gerar qualquer emoji ou símbolo unicode a partir do seu teclado
Instalar e Configurar o Slackware Linux em 2025
Como configurar os repositórios do apt no Debian 12 em 2025
Passkeys: A Evolução da Autenticação Digital
Instalação de distro Linux em computadores, netbooks, etc, em rede com o Clonezilla
Configurando o Conky para iniciar corretamente no sistema
3 configurações básicas que podem melhorar muito a sua edição pelo editor nano
Como colorir os logs do terminal com ccze
Instalação Microsoft Edge no Linux Mint 22
Como configurar posicionamento e movimento de janelas no Lubuntu (Openbox) com atalhos de teclado
QUERO REVIVER UM COMPUTADOR ANTIGO, MAS TIVE PROBLEMAS COM OS LINUX QU... (8)
Preciso atualizar o Vim [RESOLVIDO] (7)