bin/concat_csv.rb in advance-0.1.0 vs bin/concat_csv.rb in advance-0.1.1
- old
+ new
@@ -9,10 +9,10 @@
raise "'#{cmd}' failed with #{status}" if !status.success?
end
files_dir_path = ARGV[0]
output_file = ARGV[1]
-files = Find.find(files_dir_path).reject { |p| FileTest.directory?(p) || p =~ %r(\b(stdout|stderr)$) }
+files = Find.find(files_dir_path).reject { |p| FileTest.directory?(p) || File.basename(p) == "log" }
# 1. capture the header from the first file
do_cmd "ghead -n 1 #{files.first} > header"
# 2. strip the header from all files