Skip to content

Instantly share code, notes, and snippets.

@radamant
Created October 20, 2010 19:42
Show Gist options
  • Select an option

  • Save radamant/637153 to your computer and use it in GitHub Desktop.

Select an option

Save radamant/637153 to your computer and use it in GitHub Desktop.
simple command that runs `mkdir -p new/path/; touch /new/path/file`
#!/usr/bin/env ruby
path = ARGV[0]
dir = File.dirname(path)
`mkdir -p #{File.dirname(path)}; touch #{path}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment