From: Shusaku Date: 2002-12-23T00:04:15+09:00 Subject: Re: Quickest way to get md5 of a file? On Sun, 22 Dec 2002 14:00:45 +0100 "MikkelFJ" wrote: > > ruby -r digest/md5 -e 'ARGV.each{|f|print f, " "; puts > Digest::MD5.hexdigest(File.read(f))}' * > > This doesn't work on Windows 2K, Ruby 1.6.7 or 1.7.3-7 > It says that 'f' is not a valid file. You can escape the vertical line using caret like this. C:\>ruby -r digest/md5 -e 'ARGV.each{^|f^| ... }' * However, I couldn't find any documents for this special usage of the caret on Windows. I found this useful tips by trial and error. Does anyone know where the official document is? -- Shusaku