mybin

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

commit 1faf0c68f1eddbcf8dc70364fa573d91c6745040
parent 321f042034ce007382b148474a515fb222dee431
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 23 Dec 2023 14:56:25 +0100

folder

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

diff --git a/wikilink b/wikilink @@ -3,13 +3,11 @@ 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="$CURRENT" +FILE_CURRENT="$HOME/todo/wiki/$CURRENT" FOLDER=$(cat "$FILE_CURRENT" | grep "^Folder:" |cut -d: -f2 | sed 's/ *//') echo "[$NORM]" -#cat <<EOF > $HOME/todo/wiki/$NORM -cat <<EOF > $NORM +cat <<EOF > $HOME/todo/wiki/$NORM # $NAME #todo