<?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: Format output in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/format-output/m-p/3380730#M197488</link>
    <description>We can do this as,&lt;BR /&gt;crontab -l | grep "^[ 0-9*]" | cut -d" " -f6-&lt;BR /&gt;&lt;BR /&gt;It will cut all field's 6th and after&lt;BR /&gt;&lt;BR /&gt;-------&lt;BR /&gt;Franky, marc, we will be having some more filed's after 6 there on cron too :-)&lt;BR /&gt;&lt;BR /&gt;05,15,25,35,45,55 * * * * /usr/sbin/dmesg - &amp;gt;&amp;gt;/var/adm/messages&lt;BR /&gt;&lt;BR /&gt;will give only /usr/sbin/dmesg in your try there.&lt;BR /&gt;---------&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;Muthu</description>
    <pubDate>Fri, 17 Sep 2004 06:01:01 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2004-09-17T06:01:01Z</dc:date>
    <item>
      <title>Format output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/format-output/m-p/3380726#M197484</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to remove the time fields from crontab -l output. For example&lt;BR /&gt;&lt;BR /&gt;* * * * * command &lt;BR /&gt;&lt;BR /&gt;I want to remove everything before command.&lt;BR /&gt;&lt;BR /&gt;In place of * there'd be time specs. In command field there'd be different script name.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 16 Sep 2004 15:46:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/format-output/m-p/3380726#M197484</guid>
      <dc:creator>SAM_24</dc:creator>
      <dc:date>2004-09-16T15:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Format output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/format-output/m-p/3380727#M197485</link>
      <description>May not be the most elegant way, but gets the job done :-)&lt;BR /&gt;&lt;BR /&gt;crontab -l | egrep -v "^#|^$" | awk '{for(i=6;i&amp;lt;=NF;i++) printf("%s ",$i); printf("\n");}'&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Sep 2004 15:53:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/format-output/m-p/3380727#M197485</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-09-16T15:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Format output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/format-output/m-p/3380728#M197486</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;crontab -l|egrep -v "^#" |cut -d" " -f6&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;JMB</description>
      <pubDate>Fri, 17 Sep 2004 03:49:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/format-output/m-p/3380728#M197486</guid>
      <dc:creator>BONNAFOUS Jean Marc</dc:creator>
      <dc:date>2004-09-17T03:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Format output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/format-output/m-p/3380729#M197487</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;just type&lt;BR /&gt;&lt;BR /&gt;crontab -l|grep -v "^#"|awk '{print $6}'&lt;BR /&gt;&lt;BR /&gt;Should do the trick&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Franky&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Sep 2004 05:48:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/format-output/m-p/3380729#M197487</guid>
      <dc:creator>Franky_1</dc:creator>
      <dc:date>2004-09-17T05:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Format output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/format-output/m-p/3380730#M197488</link>
      <description>We can do this as,&lt;BR /&gt;crontab -l | grep "^[ 0-9*]" | cut -d" " -f6-&lt;BR /&gt;&lt;BR /&gt;It will cut all field's 6th and after&lt;BR /&gt;&lt;BR /&gt;-------&lt;BR /&gt;Franky, marc, we will be having some more filed's after 6 there on cron too :-)&lt;BR /&gt;&lt;BR /&gt;05,15,25,35,45,55 * * * * /usr/sbin/dmesg - &amp;gt;&amp;gt;/var/adm/messages&lt;BR /&gt;&lt;BR /&gt;will give only /usr/sbin/dmesg in your try there.&lt;BR /&gt;---------&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;Muthu</description>
      <pubDate>Fri, 17 Sep 2004 06:01:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/format-output/m-p/3380730#M197488</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-17T06:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Format output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/format-output/m-p/3380731#M197489</link>
      <description>How about a perl one-liner:&lt;BR /&gt; &lt;BR /&gt;crontab -l | perl -ne 'split("\\s+",$_,6); print $_[5]'&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 17 Sep 2004 10:25:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/format-output/m-p/3380731#M197489</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-09-17T10:25:53Z</dc:date>
    </item>
  </channel>
</rss>

