#! /bin/zsh ## more: ## ~/.zsh/be-task count-failures () { local dir=~/public_html/hs-linux/src/experiment/failures if [[ $1 == "--clear" ]]; then for f in $dir/*(N); do echo -n > $f done else local file=$1 local file_path=$dir/$file watch -t -n 0.1 "wc -l $file_path | cut -d\" \" -f 1; echo -n $file" fi } count-failures-no-be () { count-failures no_interference } count-failures-freeze () { count-failures throttle } count-failures-do-not-freeze () { count-failures do_not_throttle }