Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>
23 files changed:
-#!/bin/bash
+#!/usr/bin/env bash
cat <<EOF
+==============================================================================+
-#!/bin/bash
+#!/usr/bin/env bash
# 1. translate curly single quotes into regular single quotes
# 2. translate other kind of curly single quotes into regular single quotes
-#!/bin/bash
+#!/usr/bin/env bash
#
# audiorip
-#!/bin/bash
+#!/usr/bin/env bash
#
# boon
-#!/bin/bash
+#!/usr/bin/env bash
# Colors
_ESC="$(echo -en '\e')"
-#!/bin/bash
+#!/usr/bin/env bash
tmpfile=/tmp/$$.pid
-#!/bin/bash
+#!/usr/bin/env bash
ncpus=1
if [ -e /proc/cpuinfo ]; then
-#!/bin/bash
+#!/usr/bin/env bash
git branch | awk '/\*/ { print $2; }'
-#!/bin/bash
+#!/usr/bin/env bash
git status | egrep '(modified:)|(new file:)' | sed 's/.*://'
-#!/bin/bash
+#!/usr/bin/env bash
#
# Configure git identities on a repo-by-repo basis
-#!/bin/bash
+#!/usr/bin/env bash
#
# Grep the first few lines of a file.
-#!/bin/bash -ex
+#!/usr/bin/env bash -ex
renice -n -20 -p `pidof pulseaudio`
renice -n -20 -p `pidof m`
-#!/bin/bash
+#!/usr/bin/env bash
# check arguments
if [ $# -ne 2 ]; then
-#!/bin/bash
+#!/usr/bin/env bash
#
# Split an audiobook into multiple 5-minute segments.
-#!/bin/bash
+#!/usr/bin/env bash
#
# pdfgrep
-#!/bin/bash
+#!/usr/bin/env bash
die() {
echo $@
-#!/bin/bash
+#!/usr/bin/env bash
#
# This is a script I wrote to put quotes around lines of text.
-#!/bin/bash
+#!/usr/bin/env bash
if [ $# -ne 1 ]; then
echo "usage: ${0} <serial-port>"
-#!/bin/bash
+#!/usr/bin/env bash
usage()
{
-#!/bin/bash -x
+#!/usr/bin/env bash -x
usage() {
cat <<EOF
-#!/bin/bash
+#!/usr/bin/env bash
die() {
echo $@
-#!/bin/bash
+#!/usr/bin/env bash
die() {
echo $@
-#!/bin/bash
+#!/usr/bin/env bash
find . -noleaf -xdev -name '*.java' -o -name '*.h' -o -name '*.c' | \
grep $@ | xx