www.mtkn.jp

Manuscripts for my personal webpage.
git clone https://git.mtkn.jp/www.mtkn.jp
Log | Files | Refs | README

commit 7f4b47ea957cc05da529db88d042dc0f13a9e687
parent 9acdaf0e60db34c6c6ec3ca22f0c9f6a1122a934
Author: Matsuda Kenji <contact2655@matsudakenji.xyz>
Date:   Fri,  4 Feb 2022 20:14:43 +0900

add bin/newpost

Diffstat:
Abin/newpost | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/bin/newpost b/bin/newpost @@ -0,0 +1,11 @@ +#!/bin/sh +# list html files with modified date and sort them as newest is fast + +cd $(dirname $0)/.. +man=$(pwd)/man +pub=$(pwd)/pub +url="https://www.matsudakenji.xyz" + +(cd "$pub" && find . -name '*.html' | xargs ls -lT) | + awk '{printf "%d %s %02d %s\n", $9, $6, $7, $10}' | + sort -r -k3 | sort -r -s -M -k2 | sort -r -s -k1