preview
loading

'Hilong' web sites

Writing ruby scripts that respect pipelines
2012-03-13
hilong . It a small, simple utility that takes a file as an argument and prints each line prepended with its length. Lines longer than the maximum length 80 chars by default are highlighted in red. Here the simplest version of our script. usr bin env ruby A file is passed in as an argument input File.open ARGV 0 escaped bash color codes red e 31m reset color e 0m maximum line length 80 For each line of the input.. input.each line
On colorized output
hilong Gemfile. less hilong Gemfile. grep gem hilong Gemfile. more hilong Gemfile out.put Your results may vary depending on your system and your configuration, but for me the first two experiments worked just fine and the second two didn t. So grep and less handled the color codes fine, but more didn t. Redirecting to a file obviously just preserved the raw text, which won t be interpreted by text editors and the like when it
On colorized output
hilong Gemfile. less hilong Gemfile. grep gem hilong Gemfile. more hilong Gemfile out.put Your results may vary depending on your system and your configuration, but for me the first two experiments worked just fine and the second two didn t. So grep and less handled the color codes fine, but more didn t. Redirecting to a file obviously just preserved the raw text, which won t be interpreted by text editors and the like when it

'Hilong' white pages

    Sound like 'hilong'


    visitors counter and page-rank checker and web-site statistics UNCENSORED  SEARCH  ENGINE  HOME-PAGE

    No cookies are saved on your client
    We are completely no-profit and volunteers

    Use robots.txt to block indexing
    Contact us via email for other removals

    Read DMCA Policy

    CopyLeft by GiPOCO 2006-2023
    Contact us to contribute
    info (at) gipoco.com


    All trade marks, contents, etc
    belong to their respective owners