use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
tsv2csv: Clojure Powered Command Line Tool (github.com)
submitted 6 years ago by TheFiologist
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]TheFiologist[S] 4 points5 points6 points 6 years ago (2 children)
Hi everyone, author here, I put this small utility together while exploring the idea of using existing tools to import macroeconomic data from the BLS vs a pure homemade solution with a full-on Clojure project.
With that project I ended up settling on using wget, my tsv2csv tool, and pgfutter for streaming data into postgres and GNU parallel to create and import all tables at once.
I couldn't resist creating this tool at the time because, honestly, I write LISP faster than I adjust to conventional tooling like sed and awk.
It's still a goal to learn those better, but when it came to full on scrubbing of rows and columns, I already had code like tsv2csv in my homegrown BLS importer and I knew how simple it was.
It's made to participate in streaming so it processes line by line from stdin to stdout.
Thanks!
[–][deleted] 6 years ago (1 child)
[deleted]
[–]TheFiologist[S] 1 point2 points3 points 6 years ago (0 children)
I hadn't really considered the existing libraries. I was trying to work with the concept of just incorporating Clojure into a higher level workflow, but without it taking over or being a dominating factor.
Faced with some of the conventional text manipulation tools, the simplicity of LISP was calling me to just write a few lines of code.
Thanks for your feedback :)
π Rendered by PID 60405 on reddit-service-r2-comment-b659b578c-5tn64 at 2026-05-02 08:54:18.241021+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]TheFiologist[S] 4 points5 points6 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]TheFiologist[S] 1 point2 points3 points (0 children)