dotfiles/.bin/OLD/lsblog

9 lines
240 B
Plaintext
Raw Normal View History

#!/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 "