September 2010
2 posts
ShareableRouteSet - Gist →
This is a class to allow the creation of Rails route helpers for external applications without interfering with the application routes.
This is useful when you have a Rails application that needs to have some knowledge about the routes in another application. The routes could be published by the source application in a plugin/gem to avoid duplication of routing information.
Find and Concatenate Files with Spaces
Normally, xargs will interpret the spaces in the filenames as separate files. The -print0 argument to find paired with the -0 argument to xargs will use some other magical delimiter so that the spacey filenames remain intact as you pipe them around.
find ./spacey_files -name *Report* -type f -print0 | xargs -0 cat > all_reports.csv