Skip to content

Instantly share code, notes, and snippets.

@thelahunginjeet
Last active August 29, 2015 14:02
Show Gist options
  • Save thelahunginjeet/d1cf6da0050ce53260f5 to your computer and use it in GitHub Desktop.
Save thelahunginjeet/d1cf6da0050ce53260f5 to your computer and use it in GitHub Desktop.
example fish shell script that chews through multiple .cfg files for a utility that requires them
for f in *.cfg
echo 'Working on' $f
set out (basename $f .cfg).out
set err (basename $f .cfg).err
<myprog> --config=$f >$out ^$err
python process_output.py -input=$out -output=results.dat
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment