-
Recent Posts
Tags
array bash benchmark bug chrome cli configuration css diy editorial firefox fixes gotcha grub hack hardware html5 input instance_eval javascript jquery jsperf linux mouse multi touch multitouch nginx opera performance preferences prototype ruby snippet ssh syntax touch pad touchpad trackpad track pad ubuntu udev virtualbox web standards wii windowsRecent Comments
- force on The “Easy Way” to Add Custom DNS Servers in Ubuntu
- Ray on The “Easy Way” to Add Custom DNS Servers in Ubuntu
- Chema Gallego on Clone Ubuntu VMs in VirtualBox
- Ryan Finnie on Compacting a VMDK (Virtual Machine Disk Format image)
- Prevent Virtual Machines from Saving Network Interface udev Rules | splat operator on Clone Ubuntu VMs in VirtualBox
Archives
Categories
Meta
Tag Archives: files
Show Duplicate Filenames with Ruby
Here’s a quick one. I want to show just the names of files that have the same basename in a directory. Code require ‘find’ require ‘set’ all_files = [] duplicates = {} basenames = Set.new ARGV.each do |dir| Find.find … Continue reading