I need delete words that do not meet string size conditions, in this case, that the string has more than 5 characters but less than 10.
I tried to
sed -ni '/{$carac1,$carac2}$/p' $1
where carac1
is 5 and carac2
is 10, but this didn't function.
Input:
asdasd
aswq
asfasfasgga
sgasgaga
wwqwe
output:
asdasd
sgasgaga
wwqwe