Skip to content

Instantly share code, notes, and snippets.

@jclulow
jclulow / ptree.sh
Created April 19, 2012 05:23
ptree for linux
#!/bin/bash
if [[ $# -gt 0 ]]; then
if expr $1 : '^[0-9]*$' > /dev/null; then
ARGS="-p $1"
shift
while [[ $# -gt 0 ]]; do
ARGS="${ARGS},$1"
shift
done
anonymous
anonymous / DD
Created April 18, 2012 20:41
DD wrapper around dd with progress output
#!/bin/bash
#
# DD is a wrapper around dd with progress output.
#
# version: VERY BETA :-)
_verbose()
{
echo $1
}