frhyme

guess the last phonemes of a French word (local mirror of https://gitlab.com/a3nm/frhyme)
git clone https://a3nm.net/git/frhyme/
Log | Files | Refs | README | LICENSE

truncate.sh (141B)


      1 #!/bin/bash
      2 
      3 NUM=${1:?Usage: $0 NUM_PHONEMES}
      4 awk  --field-separator="\t" '{ printf "%s\t%s\n", $1, substr( $2, length($2) - '$NUM' + 1) }'
      5