I am trying to strip everything except letters and delete any letters that is less than 3 characters in my bash script... I got it to delete words that has 3 characters, but other rules are not applied. Here's what I'm using:
name="The Man From U.N.C.L.E. Official 2 2015 Henry Cavill Armie Hammer Spy Movie AS HD"
keyword="$(sed -e 's/ [a-zA-Z]\{3\} / /g' <<< "$name")"
Desired output is
echo $keyword
shows
The Man From Official Henry Cavill Armie Hammer Spy Movie
any kind of help I can get on this is greatly appreciated!