i want to filter out lines that contain more than 49% of specific character.
line 1 : QWERWWWRWT
line 2 : QWERTYUIPPP
line 2 only, because in line 1 i had 5/10 times "W".
is there an easy way by bash? sed or awk?