From: Victor Reyes Date: 2007-10-05T20:04:36+09:00 Subject: Re: some file operations ------=_Part_12925_24862849.1191582278149 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > how can my ruby program tell me how many lines are in a text file? In UNIX: v = `wc -l /etc/passwd` puts v Victor > ------=_Part_12925_24862849.1191582278149--