Yesterday I discover Sed and it's amazing. I can handle certain easy regex expressions and literals but I'm not sure how to only remove spaces that are NOT between two letters (a-zA-Z).
For example:
Input:
"Mal ","","Mr ","123"," "," Lauren Hills","Dr "," "," "," ",
Output:
"Mal","","Mr","123","","Lauren Hills","Dr","","","",
So far I've tried adapting commands that I found here, here and here.
The closest I've got is:
sed 's/ \{1,\}//g' test.csv > test.bak
which removes the significant spaces between words, like the space between Lauren
and Hills
.