Ruby

Scriptlets / One-liners

Who? What? How?
scan_for_text.rb Command-line script that scans the files in a directory for a text snippet. ruby scan_for_text.rb tanoshii
  Do an "svn rm ..." for each file in the current directory that's missing. Useful if you move a batch of files to somewhere else. svn stat | ruby -e "STDIN.readlines.each { |line| system('svn rm '+line.gsub(/\!\s+/,'')) if line[/\!\s+/]}"

Other Snippets

back to solid1pxred.com