This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ITP] shellsupport-1.2.4-1


I want to maintain shellsupport, a simple (bourne) shell scripting support helper. It is a commandline C program that provides those features I miss when writing portable shell scripts, because they are not covered by other portable (Posix 1003.2) tools.

http://www.cons.org/cracauer/shellsupport.html

invasive one-line installer:
wget -q -O - http://xarch.tu-graz.ac.at/publ/cygwin/shellsupport/get.sh | sh


http://xarch.tu-graz.ac.at/publ/cygwin/shellsupport/setup.hint
http://xarch.tu-graz.ac.at/publ/cygwin/shellsupport/shellsupport-1.2.4-1.tar.bz2
http://xarch.tu-graz.ac.at/publ/cygwin/shellsupport/shellsupport-1.2.4-1-src.tar.bz2

$ shellsupport -h
Usage:
-t s                    print seconds since 1970 for current time
-t s <datespec>         print seconds since 1970 for <datespec>
   supported formats (only C locale, no national locales!):
      date(1)           Tue May 16 17:10:19 MEST 2000
      apache-log        16/May/2000:17:07:01
      ISO-8601 short    20000516T151152
      Random U.S. crap  02-21-1999 02:31 PM (month first, 12h)
-t d <seconds>          print date(1)-format for 1970+sec
-t a <seconds>          print apache-format for 1970+sec
-t i <seconds>          print ISO-8601 short for 1970+sec
-t u <seconds>          print Unix-like CCYYMMDDhhmm.SS for 1970+sec
-f a <file>             file access date in secs from 1970
-f c <file>             file status date in secs from 1970
-f m <file>             file modification date in secs from 1970
-f l <symlink>          print target of symbolic link
-f P <file> <blocksz>   Pad file to blocksize with zeros
-f w <file>             wipeout (overwrite with zeros)
-c                      count from 1
-c <n>                  count from 1 to <n>
-c <n> <m>              count from <n> to <m>
   if <n> has a leading zero, all number will have zeros in front
   so that the length of each number is that of <m> (not <n>)
-c <n> <m> <o>          dito, with step <o> (may be negative)
-r i                    random integer between 0 and 2147483647
-r i <n>                random integer number between 0 and <n>
-r f                    random float between 0.0 and 1.0
-r f <f>                random float between 0.0 and <f>
-r a <arguments ...>    echo arguments in random order
-r a                    as before, but use * (without dirs)

--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
sdesc: "(bourne) shell scripting support"
ldesc: "shellsupport(1) supports (bourne) shell scripting. It is a commandline
C program that provides those features I miss when writing portable
shell scripts, because they are not covered by other portable (Posix
1003.2) tools.
http://www.cons.org/cracauer/shellsupport.html";
category: Utils 
requires: cygwin

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]