"Fossies" - the Fresh Open Source Software Archive

Member "dateutils-0.4.6/info/dgrep.h2m" (19 Mar 2019, 1685 Bytes) of package /linux/privat/dateutils-0.4.6.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 [EXAMPLES]
    2 
    3   $ dgrep 2012-03-01 <<EOF
    4   2012-02-28
    5   2012-02-29
    6   2012-03-01
    7   2012-03-02
    8   EOF
    9   2012-03-01
   10   $
   11 
   12 
   13   $ dgrep '<2012-03-01' <<EOF
   14   2012-02-28
   15   2012-02-29
   16   2012-03-01
   17   2012-03-02
   18   EOF
   19   2012-02-28
   20   2012-02-29
   21   $
   22 
   23 
   24   $ dgrep \\!=2012-03-01 <<EOF
   25   2012-02-28
   26   2012-02-29
   27   2012-03-01
   28   2012-03-02
   29   EOF
   30   2012-02-28
   31   2012-02-29
   32   2012-03-02
   33   $
   34 
   35 
   36   $ dgrep =2012-03-01 <<EOF
   37   Feb	2012-02-28
   38   Feb	2012-02-29	leap day
   39   Mar	2012-03-01
   40   Mar	2012-03-02
   41   EOF
   42   Mar	2012-03-01
   43   $
   44 
   45 
   46   $ dgrep -o \\<2012-03-01 <<EOF
   47   Feb	2012-02-28
   48   Feb	2012-02-29	leap day
   49   Mar	2012-03-01
   50   Mar	2012-03-02
   51   EOF
   52   2012-02-28
   53   2012-02-29
   54   $
   55 
   56 
   57   $ dgrep '>=12:00:00' <<EOF
   58   fileA	11:59:58
   59   fileB	11:59:59	leap second?
   60   fileNOON	12:00:00	new version
   61   fileC	12:03:12
   62   EOF
   63   fileNOON	12:00:00	new version
   64   fileC	12:03:12
   65   $
   66 
   67 
   68   $ dgrep -o '>=12:00:00' <<EOF
   69   fileA	11:59:58
   70   fileB	11:59:59	leap second?
   71   fileNOON	12:00:00	new version
   72   fileC	12:03:12
   73   EOF
   74   12:00:00
   75   12:03:12
   76   $
   77 
   78 
   79   $ dgrep 2012-03-01 <<EOF
   80   2012-02-28T10:00:00
   81   2012-02-29T10:00:00
   82   2012-03-01T10:00:00
   83   2012-03-02T10:00:00
   84   EOF
   85   2012-03-01T10:00:00
   86   $
   87 
   88 
   89   $ dgrep '<2012-03-01' <<EOF
   90   2012-02-28T10:00:00
   91   2012-02-29T10:00:00
   92   2012-03-01T10:00:00
   93   2012-03-02T10:00:00
   94   EOF
   95   2012-02-28T10:00:00
   96   2012-02-29T10:00:00
   97   $
   98 
   99 
  100   $ dgrep 2012-03-01T10:00:00 <<EOF
  101   2012-02-28T10:00:00
  102   2012-02-29T10:00:00
  103   2012-03-01T10:00:00
  104   2012-03-02T10:00:00
  105   EOF
  106   2012-03-01T10:00:00
  107   $
  108 
  109 
  110   $ dgrep '<2012-03-01T14:00:00' <<EOF
  111   2012-02-28T10:00:00
  112   2012-02-29T10:00:00
  113   2012-03-01T10:00:00
  114   2012-03-02T10:00:00
  115   EOF
  116   2012-02-28T10:00:00
  117   2012-02-29T10:00:00
  118   2012-03-01T10:00:00
  119   $
  120