Skip to content

Instantly share code, notes, and snippets.

@ohrite
Created May 27, 2011 23:40
Show Gist options
  • Save ohrite/996410 to your computer and use it in GitHub Desktop.
Save ohrite/996410 to your computer and use it in GitHub Desktop.
Doing cascading.multitool scripting with files
#!/usr/bin/env bash
# Copyright (c) 2011 Concurrent, Inc.
mt_path=`pwd`
content=`cat $0 | sed 's/^\s*#.*//g' | tr "\n" " " | sed 's/.*!#//'`
exec $mt_path/bin/multitool `eval echo $content`
!#
# set the source
source=$mt_path/data/artist.100.txt
# cut the first column
cut=0
# save the result to output
sink=$mt_path/output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment