uknowngithubuser
10/25/2018 - 10:09 PM

Automatically save your todo list to README.md

Automatically save your todo list to README.md

#!/bin/bash

# Remove all whitespaces from the start of file
sed "s/^[ \t]*//" -i ~/.todo

# Add all the completed todo items to the README.md list
input="/home/unkown/.todo"
while IFS= read -r var
do
  echo "- [x] $var" >> /home/unkown/scripts/setup_scripts-test_studio/README.md
done < "$input"