ptools 1.1.8

Operating systemsOS : Windows / Linux / Mac OS / BSD / Solaris
Program licensingScript Licensing : Other Free / Open Source License - Artistic 2.0 License
CreatedCreated : Nov 10, 2009
Size downloadDownloads : 4
Program licensing
Thank you for voting...

The additional features where inspired from Unix ...

The additional features where inspired from Unix command line tools.
Most important functions of ptools by Daniel Berger:
• 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. middle("myfile", 8, 12) # returns lines 8-12 of 'myfile'
• File. tail("myfile", 3) # Returns last 3 lines of 'myfile'
• File. wc("myfile", 'words') # Returns the number of words in 'myfile'
• File. touch("newfile") # "newfile" now exists
• File. null # '/dev/null' on Unix, 'NUL' on windows
• File. binary? ('some_file') # true or false
• File. nl_convert("myfile", "newfile", "dos") # Creates a copy of 'myfile' called 'newfile', in DOS format
• Ruby 1. 8. 0 or higher
• There is a bug in 1. 6. x that can cause $ characters to accumulate when converting to DOS or MAC format if nl_convert is run multiple times on the same file.
News in the current ptools 1.1.8 version:
• Fixed some bad variable names that crept into the File. nl_convert method.
added the File. null_device alias for File. null.
• Added cygwin and mingw to Windows detection code.
• One of the nlconvert tests is now skipped on Windows.
• Two text files that were previously bundled as part of this library for testing purposes have been removed. Those are now dynamically generated within the tests themselves.
• Gemspec updates.
• Documentation updates.
• Added the :gem rake task.

ptools 1.1.8 scripting tags: ruby, newfile, added, ptools, file class, returns, library, bin, file handling, ruby library, windows, myfile. What is new in ptools 1.1.8 software script? - Unable to find ptools 1.1.8 news. What is improvements are expecting? Newly-made ptools 1.2 will be downloaded from here. You may download directly. Please write the reviews of the ptools. License limitations are unspecified.