νάρθηξ - narthex

Modular personalized dictionary generator - [git] - [github] - [license] - by Michael Constantine Dimopoulos - <mk@mcdim.xyz>


napp

napp appends extra symbols or words to the end of each line of stdin, after printing each line as-is.

For example, with the following command
$ cat words.txt | napp -c @!
where words.txt contains the following:
pen
pencil
eraser
notebook
The program will output this:
pen
pencil
eraser
notebook
pen@
pencil@
eraser@
notebook@
pen!
pencil!
eraser!
notebook!
Alternatively, if you use the -f flag it will insert the appended symbols before each line, like so:
$ cat words.txt | napp -c @! -f
pen
pencil
eraser
notebook
@pen
@pencil
@eraser
@notebook
!pen
!pencil
!eraser
!notebook
To skip printing the dictionary as-is in the beggining you can use the -s (salt) flag.
$ cat words.txt | napp -c @! -s
pen@
pencil@
eraser@
notebook@
pen!
pencil!
eraser!
notebook!
Also, you can append words instead of characters/symbols with the use of -w and the name of another dictionary. For example, if words2.txt has the following contents:
dog
cat
The program will output the following
$ cat words.txt | napp -w words2.txt
pen
pencil
eraser
notebook
pendog
pencildog
eraserdog
notebookdog
pencat
pencilcat
erasercat
notebookcat