Skip to content

Commit 3b49a9a

Browse files
committed
sort find output
1 parent 1e3ef12 commit 3b49a9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/prepare_newsletter.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
ls -l content/news
88

9-
find content/news/ -type d -printf "%f\n"
9+
find content/news/ -type d -printf "%f\n" | sort -n
1010

11-
read -r -d '\n' -a news <<< `find content/news/ -type d -printf "%f\n"`
11+
read -r -d '\n' -a news <<< `find content/news/ -type d -printf "%f\n"| sort -n`
1212
1313
last_news=`echo ${news[-1]} | sed -r s/0//`
1414
echo $last_news

0 commit comments

Comments
 (0)