Skip to content

Instantly share code, notes, and snippets.

@sr3d
Created July 9, 2010 00:37
Show Gist options
  • Save sr3d/468857 to your computer and use it in GitHub Desktop.
Save sr3d/468857 to your computer and use it in GitHub Desktop.
Dir.glob("*.b").each do |file|
if File.size(file) < 62.kilobytes
return # bail out early
contact = true
`mv #{file} #{file}.old &&`
`sed 's/<\/Listings>//g' #{file}.old > #{file}`
File.rm file
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment