Skip to content

Instantly share code, notes, and snippets.

View ridespirals's full-sized avatar
🌵
desert dwelling

John Varga ridespirals

🌵
desert dwelling
View GitHub Profile
@ridespirals
ridespirals / bash.cheat
Created January 26, 2018 06:29 — forked from afair/bash.cheat
Bash Scripting Quick Reference
==========================================
BASH SCRIPTING ==========================================
========================================== TEST COMMAND
==========================================
Invoke: bash [options] file
Shebang: #!/usr/bin/env bash Test: test expression
In script: [ expression ]
========================================== Alternate: [[ espression ]]
LOOP Does not split string words
========================================== Does not expand pathglobs*
@ridespirals
ridespirals / git_fetch_pull_all_subfolders.sh
Created January 27, 2018 18:18 — forked from mnem/git_fetch_pull_all_subfolders.sh
Simple bash script for fetching and pulling all repos in the executed folder to the latest of the branch they are on
#!/bin/bash
################
# Uncomment if you want the script to always use the scripts
# directory as the folder to look through
#REPOSITORIES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REPOSITORIES=`pwd`
IFS=$'\n'