- Test the command and ensure that it works on a standard Linux environment1 with a bash shell. You can use the trickest base image on
quay.io/trickest/basewhich is based on ubuntu with a few extra utilities installed. - Scripts are meant to process the output of a tool not invoke the tool itself
$ amass -d example.com | whatever ❌
$ cat in/amass-*/output.txt | whatever ✅- Always assume that the input comes through a folder named
inand write the output to a folder namedout. - If the script produces one file, write it to
out/output.txt - Follow the format specification to add a new script YAML file.
- Do not edit scripts.md manually. This file is generated automatically
- Use the defined pull request and issue templates when possible.
name: count-lines-in-all-files
description: Used to quickly count all lines inside of all files in in folder.
author: trickest
author_info: https://trickest.com
script: find in -type f -exec cat {} + | wc -l | tee out/output.txt
language: bash
| Property | Description |
|---|---|
| name | The name of the script. Try to keep it short but descriptive |
| description | The long-form description of the script. Add as much detail as you think is needed. |
| author | The name of the person who contributed the script. |
| author_info | A link to the author's website/Twitter/GitHub where people can go to say thank you. |
| script | The actual script code |
| language | The language of the script. Currently supported languages: bash |
Footnotes
-
Feel free to suggest installing new utilities though if you think they will be handy! ↩