mybin

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

commit d853ac3a2d36bc1fd40e6d206eaa3b632a2dbf09
parent 8db79d8020ddb87f51888a1f2ba06fba846c5e55
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue, 28 Nov 2023 13:40:21 -0800

assume that wiki is pwd

Diffstat:
wikilink | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/wikilink b/wikilink @@ -3,11 +3,13 @@ CURRENT="$1" NAME="$2" NORM=$(echo "$NAME" | tr "A-Z" "a-z" | tr ' ' '_' | tr -dc '_a-z0-9-') -FILE_CURRENT="$HOME/todo/wiki/$CURRENT" +#FILE_CURRENT="$HOME/todo/wiki/$CURRENT" +FILE_CURRENT="$CURRENT" FOLDER=$(cat "$FILE_CURRENT" | grep "^Folder:" |cut -d: -f2 | sed 's/ *//') echo "[$NORM]" -cat <<EOF > $HOME/todo/wiki/$NORM +#cat <<EOF > $HOME/todo/wiki/$NORM +cat <<EOF > $NORM # $NAME #todo