File: on-add.the

package info (click to toggle)
task 2.6.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,088 kB
  • sloc: cpp: 45,965; python: 12,713; sh: 785; perl: 189; makefile: 21
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