-
Notifications
You must be signed in to change notification settings - Fork 23
[App] text search
HouzuoGuo edited this page Dec 31, 2019
·
3 revisions
Find text in plain text files, such as a telephone book or dictionary.
Under JSON object Features
, construct a JSON object called TextSearch
that has an inner object called
FilePaths
. Each key of the inner object is a "shortcut word" that may not include space, the word will be used in
command composition later; value of the shortcut word key is an absolute or relative path to a plain text file.
Here is an example:
{ ... "Features": { ... "TextSearch": { "FilePaths": { "phone-num": "/howard/telephone-book.txt", "en-fi": "/howard/english-finnish-dictionary.txt" } }, ... }, ... }
Use any capable laitos daemon to invoke the app:
.g shortcut-word search-text
Where:
-
shortcut-word
is a single word (may contain hyphen) corresponding to an plain text file in configuration. -
search-text
is case insensitive text to be found among text.
The command response will be the plain text lines from which search-text
appears.
Table of Contents
- Home
- Get started
- Component list
- Tips for running on public cloud
- Tips for using apps over satellite
- laitos terminal
Daemon Components
- DNS server
- Mail server
- Web server
- Web proxy server
- Telnet server
- Telegram chat-bot
- Simple IP services server
- SNMP server
- System maintenance
- Phone home telemetry
Web Service Components
- Twilio telephone/SMS hook
- Microsoft chat bot hook
- The Things Network LORA tracker integration
- Recurring commands
- App command form
- Simple app command execution API
- GitLab browser
- Temporary file storage
- Simple web proxy
- Desktop on a page (virtual machine)
- Read telemetry records
- Program health report
- System process explorer
- Prometheus metrics exporter
- HTTP request inspector
- HTTP request logger
Apps