#!/bin/bash # Must be called from the root directory if [[ -f api_index.md ]]; then rm api_index.md; fi cat >>api_index.md <> api_index.md done