This is what i've added as tui-str-extension:
out=""Hope you like it :)
FN=$( echo "$1" | sed s," ","",g) # Remove any spaces and make it a single string
for chance in $(echo "$FN"|sed s,"\."," ",g) # Use dots as string seperators
do out="$chance"
done
if [ "$out" = "$FN" ]
then echo ""
else echo "${out%\ /}" # Remove any tailing or single space
fi
Keine Kommentare:
Kommentar veröffentlichen