<?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: comparing files using awk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/comparing-files-using-awk/m-p/2624862#M926733</link>
    <description>the grep -i option means case insensitive btw.&lt;BR /&gt;&lt;BR /&gt;You probably want the&lt;BR /&gt;&lt;BR /&gt;awk tolower(string) or toupper(string)&lt;BR /&gt;&lt;BR /&gt;but I'll leave it to Robin, to sort that out for you.. he's the awk guru here.. I'm very surprised he didn't come out with it in his earlier post.. usually if there's a question such as how do I change directory, Robin will give you an awk script before telling you about cd !!! ;)&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 05 Dec 2001 10:13:15 GMT</pubDate>
    <dc:creator>Bill McNAMARA_1</dc:creator>
    <dc:date>2001-12-05T10:13:15Z</dc:date>
    <item>
      <title>comparing files using awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comparing-files-using-awk/m-p/2624860#M926731</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm not a script guy and I'm currently in a situation which is, I need someone who could help me create a simple (for the experts) awk script that will compare system files against users input.&lt;BR /&gt;&lt;BR /&gt;  ex.  - users entered "SAMPLE.TXT" (usually &lt;BR /&gt;         upper case)&lt;BR /&gt;       - systems could have "Sample.txt" &lt;BR /&gt;                        or  "sample.txt"&lt;BR /&gt;                        or  "sample.TXT"&lt;BR /&gt;&lt;BR /&gt;regardless whatever the system has.  Script should match users input against files in the system and proceed it's process.  BTW,  this is to ftp a file from one machine to another.&lt;BR /&gt;&lt;BR /&gt;Your reply would be greatly appreciated.&lt;BR /&gt;Thanks&lt;BR /&gt;Joey</description>
      <pubDate>Tue, 04 Dec 2001 15:06:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comparing-files-using-awk/m-p/2624860#M926731</guid>
      <dc:creator>Kurtkarl</dc:creator>
      <dc:date>2001-12-04T15:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: comparing files using awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comparing-files-using-awk/m-p/2624861#M926732</link>
      <description>Hi Joey,&lt;BR /&gt;&lt;BR /&gt;This may not be what you want, and it doesn't use awk, but it'll find all files under a directory, regardless of case, that match the user's input:&lt;BR /&gt;&lt;BR /&gt;================================&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;DIR=search-directory&lt;BR /&gt;&lt;BR /&gt;echo Enter filename: '\c'&lt;BR /&gt;read FILENAME&lt;BR /&gt;&lt;BR /&gt;find $DIR -type f | grep -i "/${FILENAME}$"&lt;BR /&gt;==================================&lt;BR /&gt;&lt;BR /&gt;Obviously, you need to edit the "DIR=" line.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Tue, 04 Dec 2001 15:25:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comparing-files-using-awk/m-p/2624861#M926732</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-12-04T15:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: comparing files using awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comparing-files-using-awk/m-p/2624862#M926733</link>
      <description>the grep -i option means case insensitive btw.&lt;BR /&gt;&lt;BR /&gt;You probably want the&lt;BR /&gt;&lt;BR /&gt;awk tolower(string) or toupper(string)&lt;BR /&gt;&lt;BR /&gt;but I'll leave it to Robin, to sort that out for you.. he's the awk guru here.. I'm very surprised he didn't come out with it in his earlier post.. usually if there's a question such as how do I change directory, Robin will give you an awk script before telling you about cd !!! ;)&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Dec 2001 10:13:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comparing-files-using-awk/m-p/2624862#M926733</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-12-05T10:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: comparing files using awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comparing-files-using-awk/m-p/2624863#M926734</link>
      <description>Joey,&lt;BR /&gt;You don't need awk for this. Is there some compelling reason for you to use awk?&lt;BR /&gt;Methinks Richard's "grep -i" should do the trick nicely.&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Dec 2001 10:55:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comparing-files-using-awk/m-p/2624863#M926734</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-12-05T10:55:29Z</dc:date>
    </item>
  </channel>
</rss>

