File: on-add.the

package info (click to toggle)
task 2.5.3%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,956 kB
  • sloc: cpp: 43,519; python: 12,288; perl: 8,697; sh: 685; 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