1
0
Fork 0
dotfiles/files/.local/bin/remmina-pretty

8 lines
181 B
Bash
Executable File

#!/bin/bash
cd ~/.local/share/remmina
ls -1 *.remmina | while read a; do
N=`grep '^name=' "$a" | cut -f2 -d=`;
[ "$a" == "$N.remmina" ] || mv "$a" "$N".remmina;
done