This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Chapter 10; Project 1: NameIndex | |
* | |
* @author Michael Leonffu | |
* @version 20-09-2018 | |
* | |
* This program interperts two data files: girlnames.txt and boynames.txt which consist of names and their frequncy | |
* e.g girlsnames.txt | |
* Jill 999 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Github atuomation: Fetch, Pull, Add, Commit, and Push. | |
#By Michael Leonffu 2017 | |
git fetch | |
git pull | |
git add . | |
printf 'Message to commit with: \n' | |
read commitMessage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Github atuomation: Fetch, Pull, Add, Commit, and Push; with prompts. | |
#By Michael Leonffu 2017 | |
function centerIt { | |
lines=$(tput lines);cols=$(tput cols);tput cup $((lines/2)) $(((cols-${#1})/2)) | |
} | |
function centerPrintIt { | |
centerIt "$1" | |
printf "$1" |