nice it fits in a skeet if i rename variable
x=$(xclip -o -selection clipboard)
while [[ $x =~ "\n\n+" ]]; do
x=${x//"\n\n+"/"\n"}
done
x=${x//-*\n}
x=${x//"\n"/ }
x=${x##* }
x=${x%%* }
while [[ $x =~ " +" ]]; do
x=${x// +/ }
done
echo "$x" | head -c -1 | xclip -selection clipboard
(told u im newb)