seq Unix Utility for MacOS X

Posted by: Bruce Snyder on 10/17/2008
Today I needed the seq Unix utility and I discovered that MacOS X does not have it. Neither does MacPorts :-(. So I Googled for it and found that scripting god Dave Taylor (who lives in Boulder) has a blog post about this. He provides a shell script that produces basic seq functionality and it works great. Now I'm able to write quick little one-liners like this:

for i in $(seq 1 10); do cp ~/tmp/cheese.xml ~/tmp/cheese$i.xml; done

Thanks, Dave!
  • Currently 5.0/5
  • 1
  • 2
  • 3
  • 4
  • 5
5.0 rating out of 1 votes

About Bruce Snyder

Bruce Snyder

Bruce Snyder is a veteran of enterprise software development and a recognized leader in open source software. With over a decade of experience, Bruce has worked with a wide range of technologies including Java EE, Enterprise Messaging and Service Oriented Integration. In addition to his role as a senior software engineer at SpringSource, Bruce is also an Apache Member, a co-founder of Apache Geronimo and a developer for Apache ActiveMQ, Apache Camel and Apache ServiceMix. He is the co-author of Professional Apache Geronimo, Beginning Spring Framework 2 both from Wrox Press and is currently co-authoring ActiveMQ In Action for Manning Publications. Bruce also serves as a member of various JCP expert groups and is a recognized international speaker at industry conferences. Bruce lives in beautiful Boulder, Colorado with his family.

More About Bruce »

NFJS, the Magazine

July Issue Now Available
  • Enterprise Security with Identity Access Management
    by Rohit Bhardwaj
  • The Secret to Building Highly Available Systems
    by Mark Richards
  • Polyglot OSGi, Part 2
    by Matt Stine
  • On Writing a Groovy DSL
    by Raju Gandhi
Learn More »