File: on-add.the

package info (click to toggle)
task 2.5.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,588 kB
  • ctags: 8,723
  • sloc: cpp: 36,161; python: 11,324; perl: 8,697; ansic: 7,400; sh: 673; makefile: 19
file content (12 lines) | stat: -rw-r--r-- 206 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

read new_task

if (echo $new_task | grep -qE '[tT]eh');
then
  new_task=$(echo $new_task | sed -r 's/([tT])eh/\1he/g')
  echo "Auto-corrected 'teh' --> 'the'"
fi

echo $new_task
exit 0