Skip to the content.
Bash benchmarks
- convert text to lower case
- example:
'ŁORÈM ÎPSÙM DÔLÕR SIT AMÉT' => 'łorèm îpsùm dôlõr sit amét'
- convert text to upper case
- example:
'łorèm îpsùm dôlõr sit amét' => 'ŁORÈM ÎPSÙM DÔLÕR SIT AMÉT'
- cut first N chars of every line
- example:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit' => 'Lorem ipsum dolor si'
- remove leading and trailing spaces from lines
- example:
' ( Lorem ipsum dolor sit amet ) ' => '( Lorem ipsum dolor sit amet )'
- convert text to latin/roman script without accents
- example:
'ŁORÈM ÎPSÙM dôlõr sit amét' => 'LOREM IPSUM dolor sit amet'
- remove all characters that are not in the range [a-zA-Z0-9 -]
- example:
' (Demain, dès l'aube) ' => 'Demain-ds-laube'
- remove all characters that are not in the range [a-zA-Z0-9 -]
- example:
' (Demain, dès l'aube) ' => 'Demain-ds-laube'