cleaned up helper scripts
This commit is contained in:
parent
a578f5047d
commit
9349d53b9c
|
@ -1,4 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
##############################################################################
|
||||
#
|
||||
# Simple script to generate tag search list for zn
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
listentry() {
|
||||
list=$(rg '^\#[a-zA-Z0-9]' *.md)
|
||||
|
@ -9,8 +14,6 @@ listentry() {
|
|||
tag=$(echo $i | cut -d':' -f2)
|
||||
title=$(head -1 $filename | sed 's/\# //')
|
||||
|
||||
#printf "(%s): %10s : %s\n" "$filename" "$tag" "$title"
|
||||
#printf "(%s): %s: %s\n" "$datetime" "$tag" "$title"
|
||||
echo "($datetime): $tag: $title"
|
||||
done
|
||||
}
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
#!/bin/bash
|
||||
##############################################################################
|
||||
#
|
||||
# Simple script to generate title search list for zn
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
listentry() {
|
||||
list=$(ls -1 *.md)
|
||||
|
|
Loading…
Reference in New Issue