Skip to content

Instantly share code, notes, and snippets.

@jagipson
Created July 15, 2011 00:41
Show Gist options
  • Save jagipson/1083812 to your computer and use it in GitHub Desktop.
Save jagipson/1083812 to your computer and use it in GitHub Desktop.
#!/bin/bash
# This script is named jpgtest_setup.sh
rm -rf /tmp/testscript
function setup
{
mkdir -p "$(dirname "$1")"
touch "$1"
}
while read
do
setup /tmp/testscript/"$REPLY"
done
# Run like this:
# ./jpgtest_setup.sh < landscape.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment