RAA - ptools/0.1.3

ptools / 0.1.3

Short description: Ruby power tools
Category: Library/Utility
Status: stable
Created: 2003-03-20 00:49:21 GMT
Last update: 2003-12-08 20:40:59 GMT
Owner: Daniel J. Berger (Projects of this owner)
Homepage: http://ruby-miscutils.sourceforge.net
Download: http://prdownloads.sourceforge.net/ruby-miscutils/ptools-0.1.3.tar.gz?download
License: Ruby's
Dependency:
Required by: codegraph/0.1.1 see http://raa.ruby-lang.org/project/ptools
Description:

ptools, aka "power tools", is an additional set of commands for the 'File' class based on *nix command line tools.

This release includes which, whereis, head, tail, middle, touch, wc and nl_convert.

CHANGES
=======
- Minor tweaks for Win32

Synopsis
========
require "ptools"

File.which("ruby") -> '/usr/local/bin/ruby'
File.whereis("ruby") -> ['/usr/local/bin/ruby','/opt/bin/ruby']

File.head("myfile") # Returns first 10 lines of 'myfile'
File.tail("myfile",3) # Returns last 3 lines of 'myfile'

File.touch("somefile") # 0 byte file 'somefile' now exists

# Creates a copy of 'myfile' called 'newfile', in DOS format
File.nl_convert("myfile","newfile","dos")

Versions: [1.1.7 (2009-07-29)] [1.1.6 (2007-08-31)] [1.1.5 (2007-07-19)] [1.1.4 (2007-05-21)] [1.1.3 (2007-04-30)] [1.1.2 (2007-04-29)] [1.1.1 (2006-08-23)] [1.1.0 (2006-08-23)] [1.0.0 (2005-06-03)] [0.1.3 (2003-12-08)]

Edit this project (for project owner)

back to RAA top