commit 814f7ba41ffcea16b1fb5e74c7d92e87e996101f
parent 3494eadf44752c8796f1a3e6ed3fd0b4feca8fd2
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sun, 26 Jan 2025 13:17:56 +0100
rm old wiki scripts
Diffstat:
5 files changed, 0 insertions(+), 58 deletions(-)
diff --git a/wiki b/wiki
@@ -1,8 +0,0 @@
-#!/bin/bash
-
-vi "$HOME/todo/wiki/$1"
-cd "$HOME/todo/wiki"
-git add .
-git commit -m 'wiki'
-git push
-
diff --git a/wikimissing b/wikimissing
@@ -1,8 +0,0 @@
-#!/bin/bash
-
-# in wiki folder collection FOLDER, find missing links
-
-FOLDER="$1"
-
-cat $1*/* | sed 's/\[/\n\[/g;s/\]/\]\n/g' | grep -F '[' | cut -d'[' -f2 | cut -d']' -f1 | sort | grep -vxf <(ls $1*/* | rev | cut -d '/' -f1 | rev | sed 's/^/\^/g') - | uniq -c | sort -n
-
diff --git a/wikimv b/wikimv
@@ -1,12 +0,0 @@
-#!/bin/bash
-
-# move file in wiki folder (without changing incoming)
-
-FOLDER="$1"
-FROM="$2"
-TO="$3"
-FROMF="$HOME/$FOLDER/$FROM"
-TOF="$HOME/$FOLDER/$TO"
-
-mv -n "$FROMF" "$TOF" || (echo 'fail move'; exit 42)
-
diff --git a/wikistats b/wikistats
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-# in wiki folder collection FOLDER, find missing links
-
-FOLDER="$1"
-
-for a in $FOLDER*
-do
- B=$(echo $a | rev | cut -d '/' -f1 | rev)
- ls "$a" | wc -l | sed "s/\$/ pages in $B/"
-done
-ls $FOLDER*/* | wc -l | sed 's/$/ pages total/' | sed 's/^/>> /'
-wikimissing $FOLDER | wc -l | sed 's/$/ missing pages/' | sed 's/^/>> /'
-
diff --git a/wikiupdate b/wikiupdate
@@ -1,16 +0,0 @@
-#!/bin/bash
-
-# in wiki folder FOLDER, replace links to FROM to links to TO
-
-FOLDER="$1"
-FROM="$2"
-TO="$3"
-
-cd "$HOME/$FOLDER"
-grep -RlF "[$FROM]" | while read a; do
- if [ -f $a ]; then
- sed -i "s/\[$FROM\]/\[$TO\]/g" $a
- fi
-done
-
-exit 0