Skip to content

Instantly share code, notes, and snippets.

@aijcoa
aijcoa / urlshort.sh
Last active December 21, 2015 04:49 — forked from tybenz/urlshort.sh
Quick fork of tybenz' urlshort.sh to include https support.
#!/bin/bash
echo "Generating URL..."
FULL_PATH="/Users/fin/Documents/dev/projects/urlshort"
#Count is kept based on a list.txt file
#list.txt is a plain text file meant to show relationships between URLs
#Instead of a running count, we just count the lines in list.txt
INITIAL=`echo -n $(cat $FULL_PATH/list.txt | wc -l)`
NUM="$INITIAL/4"