Skip to content

Instantly share code, notes, and snippets.

@trown
Created January 5, 2017 14:03
Show Gist options
  • Select an option

  • Save trown/83bda1f330ff28afe7cb515515f7d3ef to your computer and use it in GitHub Desktop.

Select an option

Save trown/83bda1f330ff28afe7cb515515f7d3ef to your computer and use it in GitHub Desktop.
function for opening gzipped CI logs
function getlog(){
pushd $(mktemp -d)
curl -O $1
archive=${1##*/}
gunzip $archive
logname=${archive%.gz}
less $logname
popd
}