<?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: printf utility and find command in Operating System - Tru64 Unix</title>
    <link>https://community.hpe.com/t5/operating-system-tru64-unix/printf-utility-and-find-command/m-p/6965514#M16129</link>
    <description>&lt;P&gt;&amp;gt; Let me try the same out and will inform you/all of the outcome.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; GNU findutils is a start, but you may need to do more than I did if&lt;BR /&gt;you want to get that "%F" interpreted properly.&amp;nbsp; I haven't looked at the&lt;BR /&gt;"find" code (or builders), so I know nothing, but I'd guess that you'd&lt;BR /&gt;also need either a GNU "date" program or some piece of GNU run-time&lt;BR /&gt;library which is used to format those date-time values.&amp;nbsp; Apparently,&lt;BR /&gt;someone ("find") expects someone (else, unknown) to support a "%F"&lt;BR /&gt;format specification, but the Tru64 version of that function/program&lt;BR /&gt;doesn't recognize "%F" as anything special.&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2017 17:40:29 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2017-05-22T17:40:29Z</dc:date>
    <item>
      <title>printf utility and find command</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/printf-utility-and-find-command/m-p/6965282#M16125</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am trying to generate a filelist and generate details of files like md5sum, size, date created, accessed, modified etc ... using the following command... but it throws the error printf not found ... any suggestions ?&lt;/P&gt;&lt;P&gt;find . -printf "%p\t%s\t%M\t%u\t%g\t%.24A+\t%.24T+\t%.24C+\t" -a \( -type d -exec echo \; -o -type f -exec sh -c "md5sum \"{}\" | cut -d' ' -f1" \; \)&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 17:08:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/printf-utility-and-find-command/m-p/6965282#M16125</guid>
      <dc:creator>Razzz</dc:creator>
      <dc:date>2017-05-19T17:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: printf utility and find command</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/printf-utility-and-find-command/m-p/6965283#M16126</link>
      <description>&lt;P&gt;&amp;gt; I [...]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uname -a&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sizer -v&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] but it throws the error printf not found [...]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; First, I'd trust copy+paste of an actual command with its actual&lt;BR /&gt;output more than your summary.&amp;nbsp; For example, I don't see how "find&lt;BR /&gt;-printf" could give that error, but...&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "find -printf" (or "printf" as a command) is a feature which is&lt;BR /&gt;likely too new for Tru64 (which is getting very old, and has not gotten&lt;BR /&gt;much development in recent years).&amp;nbsp; If you can't get what you want from&lt;BR /&gt;an "ls" command (or mutiple "ls" commands), then you might look into&lt;BR /&gt;building GNU "find" (or finding it already built for Tru64), and using&lt;BR /&gt;it instead of the built-in Tru64 "find".&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://www.gnu.org/software/findutils/" target="_blank"&gt;https://www.gnu.org/software/findutils/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 17:43:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/printf-utility-and-find-command/m-p/6965283#M16126</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2017-05-19T17:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: printf utility and find command</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/printf-utility-and-find-command/m-p/6965314#M16127</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://www.gnu.org/software/findutils/" target="_blank"&gt;https://www.gnu.org/software/findutils/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Seems to work for me (more or less):&lt;BR /&gt;&lt;BR /&gt;urtx# /usr/local/bin/find --version&lt;BR /&gt;find (GNU findutils) 4.6.0&lt;BR /&gt;Copyright (C) 2015 Free Software Foundation, Inc.&lt;BR /&gt;License GPLv3+: GNU GPL version 3 or later&lt;BR /&gt;&amp;lt;&lt;A href="http://gnu.org/licenses/gpl.html" target="_blank"&gt;http://gnu.org/licenses/gpl.html&lt;/A&gt;&amp;gt;.&lt;BR /&gt;This is free software: you are free to change and redistribute it.&lt;BR /&gt;There is NO WARRANTY, to the extent permitted by law.&lt;BR /&gt;&lt;BR /&gt;Written by Eric B. Decker, James Youngman, and Kevin Dalley.&lt;BR /&gt;Features enabled: O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2)&lt;BR /&gt;&lt;BR /&gt;urtx# /usr/local/bin/find -name 'siz*' -printf "%p\t%s\t%M\t%u\t%g\t%.24A+\t%.24T+\t%.24C+\t\n"&lt;BR /&gt;./siz.c 190&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -rw-r--r--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp; system&amp;nbsp; %F+07:45:04.0000000000&amp;nbsp; %F+12:49:06.0000000000&amp;nbsp; %F+12:49:06.0000000000&lt;BR /&gt;./siz2.c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 251&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -rw-r--r--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp; system&amp;nbsp; %F+07:46:30.0000000000 %F+07:46:18.0000000000&amp;nbsp;&amp;nbsp; %F+07:46:18.0000000000&lt;BR /&gt;./siz&amp;nbsp;&amp;nbsp; 20000&amp;nbsp;&amp;nbsp; -rwxr-xr-x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp; system&amp;nbsp; %F+14:01:42.0000000000&amp;nbsp; %F+12:49:14.0000000000&amp;nbsp; %F+12:49:14.0000000000&lt;BR /&gt;./siz2&amp;nbsp; 20000&amp;nbsp;&amp;nbsp; -rwxr-xr-x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp; system&amp;nbsp; %F+17:14:44.0000000000&amp;nbsp; %F+07:46:31.0000000000&amp;nbsp; %F+07:46:31.0000000000&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;urtx# uname -a&lt;BR /&gt;OSF1 urtx.antinode.info V5.1 2650 alpha&lt;BR /&gt;&lt;BR /&gt;urtx# sizer -v&lt;BR /&gt;HP Tru64 UNIX V5.1B (Rev. 2650); Wed Feb 17 22:59:59 CST 2016&lt;BR /&gt;&lt;BR /&gt;urtx# gcc --version&lt;BR /&gt;gcc (GCC) 4.3.2&lt;BR /&gt;[...]&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 23:16:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/printf-utility-and-find-command/m-p/6965314#M16127</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2017-05-19T23:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: printf utility and find command</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/printf-utility-and-find-command/m-p/6965469#M16128</link>
      <description>&lt;P&gt;Thanks Steven,&lt;/P&gt;&lt;P&gt;Let me try the same out and will inform you/all of the outcome.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 13:32:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/printf-utility-and-find-command/m-p/6965469#M16128</guid>
      <dc:creator>Razzz</dc:creator>
      <dc:date>2017-05-22T13:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: printf utility and find command</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/printf-utility-and-find-command/m-p/6965514#M16129</link>
      <description>&lt;P&gt;&amp;gt; Let me try the same out and will inform you/all of the outcome.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; GNU findutils is a start, but you may need to do more than I did if&lt;BR /&gt;you want to get that "%F" interpreted properly.&amp;nbsp; I haven't looked at the&lt;BR /&gt;"find" code (or builders), so I know nothing, but I'd guess that you'd&lt;BR /&gt;also need either a GNU "date" program or some piece of GNU run-time&lt;BR /&gt;library which is used to format those date-time values.&amp;nbsp; Apparently,&lt;BR /&gt;someone ("find") expects someone (else, unknown) to support a "%F"&lt;BR /&gt;format specification, but the Tru64 version of that function/program&lt;BR /&gt;doesn't recognize "%F" as anything special.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 17:40:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/printf-utility-and-find-command/m-p/6965514#M16129</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2017-05-22T17:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: printf utility and find command</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/printf-utility-and-find-command/m-p/6965668#M16130</link>
      <description>&lt;P&gt;The command was still showing some printf error related to predicate list ( I am thinking either I am not quoting properly or inserting some space somewhere ) ...&lt;/P&gt;&lt;P&gt;I installed the GNU find utils, GNU core utils, GCC , changed the path to reflect the GNU Utils, still erring on printf predicate list, so kicked the printf out of the way and used the ls command with ls -lu, ls -lc options and got the job done. I dont have a HP UX box to test the different commands unfortunately...&lt;/P&gt;&lt;P&gt;This command would work for sure ...&lt;/P&gt;&lt;P&gt;find . -printf "%p\t%s\t%M\t%u\t%g\t%AY-%Am-%Ad:%AH:%AM:%AS\t%TY-%Tm-%Td:%TH:%TM:%TS\t%CY-%Cm-%Cd:&lt;BR /&gt;%CH:%CM:%CS\t" -a \( -type d -exec echo \; -o -type f -exec sh -c "md5sum \"{}\" | cut -d' ' -f1" \; \)&lt;/P&gt;&lt;P&gt;regardless thanks a lot for your suggestions Steven ... :)&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 21:19:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/printf-utility-and-find-command/m-p/6965668#M16130</guid>
      <dc:creator>Razzz</dc:creator>
      <dc:date>2017-05-23T21:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: printf utility and find command</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/printf-utility-and-find-command/m-p/6965681#M16131</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GNU findutils is a start, but you may need to do more than I did if&lt;BR /&gt;&amp;gt; you want to get that "%F" interpreted properly.&amp;nbsp; I haven't looked at the&lt;BR /&gt;&amp;gt; "find" code (or builders), so I know nothing, but I'd guess that you'd&lt;BR /&gt;&amp;gt; also need either a GNU "date" program or some piece of GNU run-time&lt;BR /&gt;&amp;gt; library which is used to format those date-time values.&amp;nbsp; Apparently,&lt;BR /&gt;&amp;gt; someone ("find") expects someone (else, unknown) to support a "%F"&lt;BR /&gt;&amp;gt; format specification, but the Tru64 version of that function/program&lt;BR /&gt;&amp;gt; doesn't recognize "%F" as anything special.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I looked at it a little, and decided that the likely culprit was&lt;BR /&gt;strftime().&amp;nbsp; The Tru64 strftime() is too old/lame to do "%F".&lt;BR /&gt;Interestingly, the findutils kit includes a strftime.c, but it seems to&lt;BR /&gt;be built with special options to provide an nstrftime() (and/or other&lt;BR /&gt;extra-feature varients), but not a plain GNU strftime().&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; My quick evaluation is that this is a bug in GNU findutils (if they&lt;BR /&gt;want to support Tru64, that is).&amp;nbsp; The config.h says HAVE_STRFTIME, but&lt;BR /&gt;it's not clear that anyone cares, and the old/lame Tru64 strftime()&lt;BR /&gt;can't do what is expected of it by the GNU "find" code.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; What I enjoy most about GNU code is the way that any piece of GNU&lt;BR /&gt;code seems to drag in at least two other pieces of GNU code, and so on.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 00:29:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/printf-utility-and-find-command/m-p/6965681#M16131</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2017-05-24T00:29:26Z</dc:date>
    </item>
  </channel>
</rss>

