This repository has been archived on 2023-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
bash_scripts/general/journal/mcj.sh

13 lines
332 B
Bash

#!/bin/bash
##Create a text file which combines all journal entries into one
## and gives it the name of the current month.
for filename in $( ls -r -t *.txt )
do
if [ "$filename" != "`date +%B`.txt" ]
then
echo "$filename"
cat "$filename"
echo
fi
done > ~/Dropbox/Apps/Plain.txt/`date +%B`.txt