mediocre-blog/latest-post.sh

6 lines
104 B
Bash
Raw Normal View History

#!/bin/bash
postsDir=static/src/_posts
echo $postsDir/$(ls -1 static/src/_posts | sort -n | tail -n1)