Skip to content

Instantly share code, notes, and snippets.

View BrianLefler's full-sized avatar

Brian Lefler BrianLefler

  • Google
  • Washington, DC
View GitHub Profile
@BrianLefler
BrianLefler / memusg
Created August 20, 2016 21:14 — forked from netj/memusg
memusg -- Measure memory usage of processes
#!/usr/bin/env bash
# memusg -- Measure memory usage of processes
# Usage: memusg COMMAND [ARGS]...
#
# Author: Jaeho Shin <netj@sparcs.org>
# Created: 2010-08-16
############################################################################
# Copyright 2010 Jaeho Shin. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
@BrianLefler
BrianLefler / count-matching-lines-driver.sh
Created August 20, 2016 20:54 — forked from mbland/count-matching-lines-driver.sh
Proof-of-concept bash-only implementation of 'grep -o $exp | sort | uniq -c'
#! /bin/bash
#
# Driver for the count-matching-lines script
#
# Author: Mike Bland <mbland@acm.org>
# https://mike-bland.com/, https://github.com/mbland/
# Date: 2016-08-19
usage() {
local message