Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 914 Bytes

README.md

File metadata and controls

38 lines (23 loc) · 914 Bytes

flashcards.sh

A POSIX complient flashcards learning shell script

Prerequisites

Make the script executable: e.g. chmod +x flashcards.sh.

Usage

[OPTIONS]... ./flashcards.sh [FILE]

e.g. t=1 ./flashcards.sh example.txt

Options

modes: m=[n] - show nth page of cards

typing: t=[n] - enable typing check for nth page

cards: c=[n] - how many cards to print

permanent savefiles: p=[n] - 1 for saving in current directory

Controls

next page with ENTER

save and exit with q ENTER, exit with control-C

Input file requirements

separate pages with ' = ', see example.txt

last line is an empty new line

no other empty or unused lines

Dependencies

shell - any POSIX complient shell

awk is the only needed non shell, but still POSIX command

optional: rm for deleting temp files