Posts Tagged ‘characters’

When using kanji in a document which is non-standard or rare, it is common for hiragana or katakana characters to be printed above (or beside for vertical text) the kanji to aid pronunciation. This is also common in children’s books and other Japanese learning material. This post explains how to do that using LaTeX. This […]

If you want to get the last n characters of a string in bash, you can simply mix bash substrings – ${string:offset[:length]} – with bash string lengths – ${#string}. For example: str=”abcde” n=3 echo ${str:${#str} – $n} will print: cde