Skip to content

Instantly share code, notes, and snippets.

@walteryu
Created October 8, 2018 15:20
Show Gist options
  • Save walteryu/fe3b098f931d5212e86a2bc288e89af2 to your computer and use it in GitHub Desktop.
Save walteryu/fe3b098f931d5212e86a2bc288e89af2 to your computer and use it in GitHub Desktop.
hw4_p1.sh
#!/bin/bash
# CSCI E63 HW4 - Walter Yu, Fall 2018
# Script commands to complete HW4
# P1 - Compress data file for trasnfer into VM:
tar -zcvf retail-data.tar.gz ../e63-hw4-data-oreilly/data/retail-data
# P1 - Extract data file within VM:
tar -zxvf prog-1-jan-2005.tar.gz -C /tmp
# P1 - Connect to MySQL
mysql -u retail_dba -p
use retail_db;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment