---
name: "thwab-scripts"
section: "1"
platform: "linux"
package: "thwab-lib"
version: "1.1.2-1"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/thwab-scripts"
---

# thwab-scripts(1)

generate TOC from stubs or first line of contents th-add-toc-stubs - extract TOC stubs from 1 control file and add them to content file names th-rm-toc-stubs - remove TOC stubs from content filen ames th-rm-backup - remove files having ~ suffix (generated as backup by some text editors) th-add-dot-txt - add the .txt suffix to leaf content file names (to make file managers happy) th-rm-dot-txt - remove .txt suffix (should be done before packing) th-gen-stub-search-cache - generate fuzzy search cache control file th-pack - compress the book th-match-re - search and substitute for matching regular expression th-filter-text - Regular expression set filter th-match-filter-text - Match for regular expression set

## NAME

th-update-toc - generate TOC from stubs or first line of contents

th-add-toc-stubs - extract TOC stubs from 1 control file and add them to content file names

th-rm-toc-stubs - remove TOC stubs from content filen ames

th-rm-backup - remove files having ~ suffix (generated as backup by some text editors)

th-add-dot-txt - add the .txt suffix to leaf content file names (to make file managers happy)

th-rm-dot-txt - remove .txt suffix (should be done before packing)

th-gen-stub-search-cache - generate fuzzy search cache control file

th-pack - compress the book

th-match-re - search and substitute for matching regular expression

th-filter-text - Regular expression set filter

th-match-filter-text - Match for regular expression set

## SYNOPSIS

**th-update-toc**

**th-add-toc-stubs**

**th-rm-toc-stubs**

**th-rm-backup**

**th-add-dot-txt**

**th-rm-dot-txt**

**th-gen-stub-search-cache**

**th-pack**

**th-filter-re RE**\
 **th-filter-re s RE REPLACEMENT**\
 **th-filter-re y SET1 SET2**

**th-filter-text**

**th-match-filter-text**

## DESCRIPTION

Thwab scripts are scripts which can be used to ease the addition of new books to Thwab Library.

Please refer to the documentation in /usr/share/doc/thwab-lib/ for detailed explanation of those scripts.

-

  ## AUTHOR

Thwab scripts were written by Muayyad Saleh AlSadi \<alsadi@gmail.com\>

Home page: http://thwab.net

This manual page was written by Ahmed El-Mahmoudy \<aelmahmoudy@users.sourceforge.net\>, for the Debian project (but may be used by others).
