pathologicalhandwaving
1/16/2017 - 2:15 PM

Shell script for adding items to a yaml terms list

Shell script for adding items to a yaml terms list

#!/bin/bash

FILE="$HOME/School/Classes/MIT6001x/Notes/termList.yml"

clear

read -p 'Term: ' term

echo "- $term" >> $FILE

# STDOUT Last Entry
cat $FILE | tail -3


# Exit
exit 0