<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: crontab filter in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-filter/m-p/4571426#M650372</link>
    <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;ENOCOFFEE.  The '!=' operator should have been 'ne' since we are comparing strings, not numbers.  Hence:&lt;BR /&gt;&lt;BR /&gt;# crontab -l | perl -wnale 'next if m{^\s*(#|$)};print if $F[2] ne "*" and $F[3] ne "*"'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 26 Jan 2010 12:55:32 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2010-01-26T12:55:32Z</dc:date>
    <item>
      <title>crontab filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-filter/m-p/4571422#M650368</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;my crontab is pretty long and complex and I would like to get non-commented lines which have day and month other than '*'. Any oneline script to perform it?</description>
      <pubDate>Tue, 26 Jan 2010 12:24:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-filter/m-p/4571422#M650368</guid>
      <dc:creator>wojtek75</dc:creator>
      <dc:date>2010-01-26T12:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: crontab filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-filter/m-p/4571423#M650369</link>
      <description>crontab -l |grep -v "#"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 26 Jan 2010 12:38:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-filter/m-p/4571423#M650369</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2010-01-26T12:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: crontab filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-filter/m-p/4571424#M650370</link>
      <description>This only filters commented lines. What about picking the ones with day and month (3rd and 4th position of crontab entry) other than '*'?</description>
      <pubDate>Tue, 26 Jan 2010 12:40:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-filter/m-p/4571424#M650370</guid>
      <dc:creator>wojtek75</dc:creator>
      <dc:date>2010-01-26T12:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: crontab filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-filter/m-p/4571425#M650371</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# crontab -l | perl -nale 'next if m{^\s*(#|$)};print if $F[2] !="*" and $F[3] !="*"'&lt;BR /&gt;&lt;BR /&gt;Perl counts fields zero-relative, so the monthday and month are field two (2) and three (3).&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Jan 2010 12:43:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-filter/m-p/4571425#M650371</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-01-26T12:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: crontab filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-filter/m-p/4571426#M650372</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;ENOCOFFEE.  The '!=' operator should have been 'ne' since we are comparing strings, not numbers.  Hence:&lt;BR /&gt;&lt;BR /&gt;# crontab -l | perl -wnale 'next if m{^\s*(#|$)};print if $F[2] ne "*" and $F[3] ne "*"'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 26 Jan 2010 12:55:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-filter/m-p/4571426#M650372</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-01-26T12:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: crontab filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-filter/m-p/4571427#M650373</link>
      <description>You can also use awk:&lt;BR /&gt;crontab -l | awk '&lt;BR /&gt;substr($0, 1, 1) != "#" &amp;amp;&amp;amp; NF &amp;gt;= 6 &amp;amp;&amp;amp; $3 != "*" &amp;amp;&amp;amp; $4 != "*" { print $0 }'</description>
      <pubDate>Tue, 26 Jan 2010 13:17:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-filter/m-p/4571427#M650373</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-26T13:17:04Z</dc:date>
    </item>
  </channel>
</rss>

