osvc

scripts to save some time with self-employed stuff
git clone git://gtms.dev/osvc
Log | Files | Refs

fio-period (244B)


      1 #!/usr/bin/env zsh
      2 #
      3 # Usage: fin-period <acc> <period>
      4 
      5 usage="$0 <acc> <period>"
      6 
      7 function fail() {
      8   print $usage >&2
      9   exit 1
     10 }
     11 
     12 acc="$1"
     13 period="$2"
     14 
     15 [[ -z $acc || -z $period ]] && fail
     16 
     17 fio -a "$acc" t p -f `date -Idate --date="$period"`