Skip to content

Instantly share code, notes, and snippets.

Avatar
🌵
desert dwelling

John Varga ridespirals

🌵
desert dwelling
View GitHub Profile
@ridespirals
ridespirals / git_fetch_pull_all_subfolders.sh
Created Jan 27, 2018 — 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
View git_fetch_pull_all_subfolders.sh
#!/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'
@ridespirals
ridespirals / bash.cheat
Created Jan 26, 2018 — forked from afair/bash.cheat
Bash Scripting Quick Reference
View bash.cheat
==========================================
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*