#!/bin/bash # Really quick hacky script to comment/uncomment links to translations # of the GPG guide. enc_mode=$1 enc_lang=$2 if [ $enc_mode = 'enable' ] then # Regex to match
  • tag with language link enc_regex="" # Uncomment it sed -i "s/$enc_regex/\1/" **/*.html elif [ $enc_mode = 'disable' ] then # Regex to match
  • tag with language link enc_regex="\(
  • \)" # Comment it out sed -i "s/$enc_regex//" **/*.html else echo 'Usage: toggle-lang enable|disable ' fi