oboeta

(★ 15)

scripts for managing free-form, plain-text collections of flashcards

File Explorer

  • COPYING
  • install.sh
  • oboeta.py
  • oboetahttp.py
  • oboetatty.py
  • ocloze.py
  • oleitner.py
  • osm2.py
  • README.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

awk

View Details ▼

A versatile programming language for working on files.
Note: Different implementations of AWK often make this a symlink of their binary.
See also: `gawk`.

awk '{print $5}' {{path/to/file}}

Print the fifth column (a.k.a. field) in a space-separated file:

awk '/{{foo}}/ {print $2}' {{path/to/file}}

Print the second column of the lines containing "foo" in a space-separated file:

awk -F ',' '{print $NF}' {{path/to/file}}

Print the last column of each line in a file, using a comma (instead of space) as a field separator:

🔍

mkfifo

View Details ▼

Make named pipes, also known as First In First Out (FIFO).

mkfifo {{path/to/pipe}}

Create a named pipe at a given path:

echo "{{Hello World}}" > {{path/to/pipe}} &

Send data through a named pipe and send the command to the background:

cat {{path/to/pipe}}

Receive data through a named pipe:

🔍

sed

View Details ▼

Edit text in a scriptable manner.
See also: `awk`, `ed`.

{{command}} | sed 's/apple/mango/g'

Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in all input lines and print the result to `stdout`:

{{command}} | sed 's/apple/mango/g'

Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in all input lines and print the result to `stdout`:

{{command}} | sed 's/apple/mango/g'

[s]ubstitute all occurrences of "apple" with "mango" on all lines, print to `stdout`:

// repository documentation