Skip to content

Instantly share code, notes, and snippets.

@tkrop
tkrop / create-legacy-redirect-pages.sh
Last active August 25, 2017 06:42
Create legacy redirect pages for zalando/restful-api-guidelines
#! /bin/bash
OUTPUT="${1:-../../open/restful-api-guidelines/legacy}";
VERIFY="${2:-maxim-tschumak.github.io/restful-api-guidelines/index.html}";
RULE=100;
rm -rf "${OUTPUT}";
for FILE in $(find -name "*.html"); do
TARGET="$(echo ${FILE} | cut -c 44-)";