Skip to content

Instantly share code, notes, and snippets.

@spasarok
spasarok / loop
Created October 11, 2019 19:48
Execute a function with parameters multiple times in bash
# Add to ~/.bash_profile
function loop {
for i in $(seq $2); do $1; done
}
# source ~/.bash_profile
source ~/.bash_profile
@spasarok
spasarok / bash.md
Created June 2, 2018 13:17
Bash Commands You Should Know

Bash Commands You Should Know

File System

Concepts

Full Paths

  • Begin with /
  • Examples
  • /full/path/to/file