Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Pass input as var to Automator's Run Shell Script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Pass input as var to Automator's Run Shell Script
Authored by: jstal on Aug 24, '10 06:45:44PM

Sweet hint, thanks. Makes it easy to use awk in a workflow, or any other tool that's not in Automator's list of interpreters.

#!/bin/bash
cat "$@" | awk -F , '{print $5","$4","$11","$9$10}' > /tmp/mytempfile.csv

---
Don't anthropomorphize computers, they hate it!



[ Reply to This | # ]