N
nkb
Hi.
I've a directory with a long list of files (e.g. *.rb, *.txt, etc.). All
my ruby files are named like 00001.rb, 00002.rb up to 05000.rb or so.
What I am really interested is to get the ruby file list and compare it
with an existing list. And if this new list has additional files, I
would invoke another program with just the integer part of the file as
the arugment. (i.e. runmyprogram (5000) instead of runmyprogram (05000.rb))
My ruby knowledge allows me to write up to here:
directory = Dir
puts Dir.pwd
puts Dir.entries(Dir.pwd)
Could anyone help or point me to how to get set the rest of my
requirement? Thanks!!
I've a directory with a long list of files (e.g. *.rb, *.txt, etc.). All
my ruby files are named like 00001.rb, 00002.rb up to 05000.rb or so.
What I am really interested is to get the ruby file list and compare it
with an existing list. And if this new list has additional files, I
would invoke another program with just the integer part of the file as
the arugment. (i.e. runmyprogram (5000) instead of runmyprogram (05000.rb))
My ruby knowledge allows me to write up to here:
directory = Dir
puts Dir.pwd
puts Dir.entries(Dir.pwd)
Could anyone help or point me to how to get set the rest of my
requirement? Thanks!!