Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gawk '{gsub(/\n\n+/,"\n\n");printf $0}' RS="^$" file | sed '
- s/\s*\([.,;!?]\)\s*/\1 /g
- s/\s\+/ /g
- s/^.*$/\L&/
- s/\([.;!?]\s*\)\(.\)/\1\u\2/g
- s/^./\u&/
- /\(^$\)\|\([!?;.,]\s*$\)/! s/\s*$/.&/
- '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement