simple-show.sh 414 B

1234567891011121314151617181920212223
  1. #/bin/bash -e
  2. cd $LEKTORDIR
  3. for FEED in $(ls new)
  4. do
  5. mkdir -p cur/$FEED
  6. # print feed header
  7. echo "In feed $(cat src/$FEED/name):"
  8. echo
  9. for ENTRY in $(ls new/$FEED)
  10. do
  11. # print entry
  12. echo "$(cat new/$FEED/$ENTRY/title)"
  13. cat new/$FEED/$ENTRY/content | head -n 4
  14. echo
  15. # move entry to `cur`
  16. mv new/$FEED/$ENTRY cur/$FEED/$ENTRY
  17. done
  18. done