File: on-add.the

package info (click to toggle)
task 3.4.2%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,332 kB
  • sloc: cpp: 42,567; python: 12,689; sh: 775; perl: 189; makefile: 35
file content (12 lines) | stat: -rw-r--r-- 236 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

read -r new_task

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

printf "%s" "$new_task"
exit 0