mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 1a9492b0acac3b54d8958059a4b6fda5978a18d3
parent e68a9f48dbb0fc6dcf8d87ae7c223c16f00d56a1
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Thu,  9 Apr 2015 11:55:09 +0800

+htmlredirect

Diffstat:
htmlredirect | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/htmlredirect b/htmlredirect @@ -0,0 +1,16 @@ +#!/bin/bash + +# output code of a HTML redirect to $1 + +cat <<EOF | sed 's/URL/'$1'/g' +<!DOCTYPE html> +<html dir="ltr" xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title> + <meta http-equiv="refresh" content="0; url=URL" /> + </head> + <body> + <p>You are redirected to <a href="URL">URL</a>.</p> + </body> +</html> +EOF