Index of /downloads/loop

      Name                    Last modified      Size  Description
Parent Directory - loop-1.0.tar.gz 02-Nov-2005 11:27 2.0K loop.1 06-Sep-2006 08:14 1.4K loop.c 06-Sep-2006 08:14 2.8K Makefile 02-Nov-2005 08:44 283 README 06-Sep-2006 08:14 1.2K README.txt 06-Sep-2006 08:14 1.2K

    loop - Copyright (C) 1997 Murray Nesbitt (websrc AT nesbitt.ca)

    This program is protected and licensed under the following terms and
    conditions: 1) it may not be redistributed in binary form without the
    explicit permission of the author; 2) when redistributed in source
    form, in whole or in part, this complete copyright statement must
    remain intact.


    Usage: loop [-o|x] start end [increment] [width]

    Prints to stdout a series of numbers from `start' to `end', with
    optional increment and zero-padded field width.  Hex (-x) or octal
    (-o) output formats are available.  Negative numbers are allowed,
    and a negative `increment' does the expected thing.

    Examples:

        $ loop 1 3
        1
        2
        3

        $ loop 2 6 2
        2
        4
        6

        $ loop 2 10 2 2
        02
        04
        06
        08
        10

        $ # Create 10 test files, 'test01' through 'test10'
        $ for i in `loop 1 10 1 2`; do touch test$i; done

        $ loop -x -8 8 4 8
        FFFFFFF8
        FFFFFFFC
        00000000
        00000004
        00000008

        $ loop 4 0 -1
        4
        3
        2
        1
        0