Snippets

Ruslan Osmanov util.sh for iostat/gnuplot scripts

Created by Ruslan Osmanov
#!/bin/bash -

# $1 - Optional error message.
function die
{
  [ $# -gt 0 ] && echo >&2 $1
  exit 1
}

function warning
{
  echo >&2 "Warning: $1"
}


function getSafeFilename
{
  r=${1//\//_}
  echo ${r/\%/}
}

#vim: ts=2 sts=2 sw=2 et

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.