# Ruby script file

**URL:** <https://www.ruby-forum.com/t/ruby-script-file/112598>\
**Category:** Ruby-Forum\
**Created:** [August 21, 2007, 8:38am UTC](https://www.ruby-forum.com/t/ruby-script-file/112598 "2007-08-21T08:38:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubist](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c67d28/32.png) [@rubist](https://www.ruby-forum.com/u/rubist)\
**Post date:** [August 21, 2007, 8:38am UTC](https://www.ruby-forum.com/t/ruby-script-file/112598/1 "2007-08-21T08:38:21Z")

</div>

Hello guys,

I’m new to ruby on rails and I’ve been given a question by my manager to  
do the following task below but i can’t seem to find the command or go  
around doing the task. so i’m wondering can anybody help me here?  
Here’s the task below:-

## Question

Write a batch file or ruby script file to detect large mail folders on  
the server.

1. Write a batch file to list all \*.pmm files under f:\home folders  
(including subfolders) into a text file, say, bigmail.txt

2. Use ruby to scan the bigmail.txt file and output only those lines  
with file size more than 100MB, again redirect the output to a text  
file, say, bigpmm.txt

I’m not sure how to go about doing the above. Can anyone assist me? My  
programming skills are poor and yet i can’t find the way to solve the  
question above.

Thank you and appreciate the help a lot.
