2014-03-24から1日間の記事一覧

find.exe のバグ?制限値?

CMD

find では長い行を扱えないようだ。 C:\>ruby -e "5.times{puts '@'*4094}" | find "@" | ruby -nle "puts $_.size" 4094 4094 4094 4094 4094 C:\>ruby -e "5.times{puts '@'*4095}" | find "@" | ruby -nle "puts $_.size" 20474 C:\> 改行を含んで4096ま…