dotfiles/.bin/OLD/lsblog
2024-02-14 07:55:58 +01:00

9 lines
240 B
Bash
Executable File

#!/bin/sh
. $HOME/.bin/_config
printf "Blog Index:\n"
ssh $USER@$DOMAIN "find $LOCAL_PATH/posts -type f -maxdepth 1 \
-exec printf '{}|' \; -exec head -1 '{}' \; \
| sed 's,.*/,,'| sort | column -s'|' -t "