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"
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Descritores de Arquivos e Swappiness
Solução rápida para o problema do Network Manager conectar mas não navegar
Como instalar no Linux Jogos da Steam só para Windows
Instalando o Team Viewer no Debian Trixie - problema no Policykit
Como rodo essa suinaria? [RESOLVIDO] (6)
Problemas latentes de performance no Ubuntu 25.04 (1)