<?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: Script to find latest verison of a file in 2 seperate directories in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-find-latest-verison-of-a-file-in-2-seperate/m-p/2425101#M972</link>
    <description>Create a file with the desired time stamp ( time_stamp ):&lt;BR /&gt;&lt;BR /&gt;# touch -t 200006070000 time_stamp&lt;BR /&gt;&lt;BR /&gt;then:&lt;BR /&gt;&lt;BR /&gt;# find . -newer time_stamp -print&lt;BR /&gt;</description>
    <pubDate>Wed, 07 Jun 2000 17:22:23 GMT</pubDate>
    <dc:creator>Paul Bouchie</dc:creator>
    <dc:date>2000-06-07T17:22:23Z</dc:date>
    <item>
      <title>Script to find latest verison of a file in 2 seperate directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-find-latest-verison-of-a-file-in-2-seperate/m-p/2425098#M969</link>
      <description>I'm trying to compare files from 2 different directories. I want a simple script that would produce the file or directory that has the latest timestamp. How can this be done?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 06 Jun 2000 15:07:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-find-latest-verison-of-a-file-in-2-seperate/m-p/2425098#M969</guid>
      <dc:creator>Joe Bruno</dc:creator>
      <dc:date>2000-06-06T15:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script to find latest verison of a file in 2 seperate directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-find-latest-verison-of-a-file-in-2-seperate/m-p/2425099#M970</link>
      <description>Files can be compared with a simple test statement.&lt;BR /&gt;&lt;BR /&gt;if [ file1 -nt file2 ]&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Never tried to use it on directories.&lt;BR /&gt;&lt;BR /&gt;If what you are trying to do is quite complex, look at the make command. It isn't just for making programs.</description>
      <pubDate>Tue, 06 Jun 2000 15:16:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-find-latest-verison-of-a-file-in-2-seperate/m-p/2425099#M970</guid>
      <dc:creator>Simon Waters_1</dc:creator>
      <dc:date>2000-06-06T15:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Script to find latest verison of a file in 2 seperate directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-find-latest-verison-of-a-file-in-2-seperate/m-p/2425100#M971</link>
      <description>Try this command: "find . -name filename -atime -n"&lt;BR /&gt;&lt;BR /&gt;Read online manual for find.&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2000 15:39:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-find-latest-verison-of-a-file-in-2-seperate/m-p/2425100#M971</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-06-06T15:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script to find latest verison of a file in 2 seperate directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-find-latest-verison-of-a-file-in-2-seperate/m-p/2425101#M972</link>
      <description>Create a file with the desired time stamp ( time_stamp ):&lt;BR /&gt;&lt;BR /&gt;# touch -t 200006070000 time_stamp&lt;BR /&gt;&lt;BR /&gt;then:&lt;BR /&gt;&lt;BR /&gt;# find . -newer time_stamp -print&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jun 2000 17:22:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-find-latest-verison-of-a-file-in-2-seperate/m-p/2425101#M972</guid>
      <dc:creator>Paul Bouchie</dc:creator>
      <dc:date>2000-06-07T17:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script to find latest verison of a file in 2 seperate directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-find-latest-verison-of-a-file-in-2-seperate/m-p/2425102#M973</link>
      <description>the test is [ file1 -nt file2 ]&lt;BR /&gt;&lt;BR /&gt;try this script&lt;BR /&gt;&lt;BR /&gt;fcomp:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;if [ $# -ne 2 ]&lt;BR /&gt;then&lt;BR /&gt;   echo "Error: Usage: fcomp file1 file2"&lt;BR /&gt;file1=$1&lt;BR /&gt;file2=$2&lt;BR /&gt;&lt;BR /&gt;if [ $file1 -nt $file2 ]&lt;BR /&gt;then&lt;BR /&gt;   echo "$file1 is newer than $file2"&lt;BR /&gt;fi&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jun 2000 20:36:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-find-latest-verison-of-a-file-in-2-seperate/m-p/2425102#M973</guid>
      <dc:creator>Scott D. Allen</dc:creator>
      <dc:date>2000-06-07T20:36:40Z</dc:date>
    </item>
  </channel>
</rss>

