Skip to content

Instantly share code, notes, and snippets.

@SkamDart
Created April 25, 2018 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SkamDart/6eefdc40b751bcc05e4a19a210371930 to your computer and use it in GitHub Desktop.
Save SkamDart/6eefdc40b751bcc05e4a19a210371930 to your computer and use it in GitHub Desktop.
test_all bash script Lab14
#!/usr/bin/env bash
# 2>/dev/null redirects all file descriptor 2 (stderr) output to /dev/null
# remove or replace /dev/null with a file if you care to see stderr
# first output is the scalar version per the provided Makefile
MAKE='make t'
for i in $(seq 1 6); do $MAKE$i 2>/dev/null | grep 't'$i' took'; done
make mandelbrot && ./mandelbrot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment