<?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: runawk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151246#M454819</link>
    <description>hi&lt;BR /&gt;&lt;BR /&gt;you are free in naming your awk script. Unix does not know something like file name extensions as windows does ( e.g. *.exe ).&lt;BR /&gt;&lt;BR /&gt;i used "program.file" and "data.file" just as placeholder names. Replace them with the filenames you use.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH&lt;BR /&gt;</description>
    <pubDate>Mon, 19 Jan 2009 09:27:30 GMT</pubDate>
    <dc:creator>Hemmetter</dc:creator>
    <dc:date>2009-01-19T09:27:30Z</dc:date>
    <item>
      <title>runawk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151242#M454815</link>
      <description>I got example program written in awk how to compile and run this program..please let me know its urgent</description>
      <pubDate>Mon, 19 Jan 2009 08:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151242#M454815</guid>
      <dc:creator>unixadmin_1</dc:creator>
      <dc:date>2009-01-19T08:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: runawk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151243#M454816</link>
      <description># awk -f filename&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jan 2009 08:59:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151243#M454816</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2009-01-19T08:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: runawk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151244#M454817</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you run that program by calling:&lt;BR /&gt;$ awk -f program.file data.file&lt;BR /&gt;&lt;BR /&gt;or you modify the first of programm file to:&lt;BR /&gt;&lt;BR /&gt;#/usr/bin/awk&lt;BR /&gt;&lt;BR /&gt;so that program is executed directly by awk.&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jan 2009 09:07:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151244#M454817</guid>
      <dc:creator>Hemmetter</dc:creator>
      <dc:date>2009-01-19T09:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: runawk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151245#M454818</link>
      <description>with what extensions awk programms are saved and  i do not understand wht is program .file and data.file in this: $ awk -f program.file data.file</description>
      <pubDate>Mon, 19 Jan 2009 09:20:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151245#M454818</guid>
      <dc:creator>unixadmin_1</dc:creator>
      <dc:date>2009-01-19T09:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: runawk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151246#M454819</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;you are free in naming your awk script. Unix does not know something like file name extensions as windows does ( e.g. *.exe ).&lt;BR /&gt;&lt;BR /&gt;i used "program.file" and "data.file" just as placeholder names. Replace them with the filenames you use.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jan 2009 09:27:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151246#M454819</guid>
      <dc:creator>Hemmetter</dc:creator>
      <dc:date>2009-01-19T09:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: runawk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151247#M454820</link>
      <description>If the file is named 'abc', use "awk -f abc" command to execute it.</description>
      <pubDate>Mon, 19 Jan 2009 09:39:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151247#M454820</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2009-01-19T09:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: runawk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151248#M454821</link>
      <description>i had saved with file name awk and how do i run this program and where do i run this&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jan 2009 09:42:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151248#M454821</guid>
      <dc:creator>unixadmin_1</dc:creator>
      <dc:date>2009-01-19T09:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: runawk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151249#M454822</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;it was not the best idea to name your program like the interpreter, 'test' would have been a name, I wouldn't recommend as well.&lt;BR /&gt;It may help you, using .awk as a suffix, if you are used to identify your home made programs that way.&lt;BR /&gt;NB: An awk program gets interpreted - there is no compiling stage.&lt;BR /&gt;&lt;BR /&gt;1) Rename your awk-program named awk&lt;BR /&gt;mv awk prog1.awk&lt;BR /&gt;2) Check the first line of your program&lt;BR /&gt;sed 1q prog1.awk&lt;BR /&gt;3) If the output is not like this&lt;BR /&gt;#!/usr/bin/awk -f -&lt;BR /&gt;add a line with exactly this text.&lt;BR /&gt;4) Add the execute-bit to that program&lt;BR /&gt;chmod +x prog1.awk&lt;BR /&gt;&lt;BR /&gt;Every awk program read the stdin, when no filename(s) are provided as parameters.&lt;BR /&gt;5) So just calling&lt;BR /&gt;./prog1.awk&lt;BR /&gt;will wait for data entered&lt;BR /&gt;6) ./prog1.awk "file-with-data"&lt;BR /&gt;will read that file&lt;BR /&gt;7) ... | ./prog1.awk&lt;BR /&gt;will read data from the pipe (output of the command "...")&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now it depends, how your awk program works.</description>
      <pubDate>Mon, 19 Jan 2009 10:00:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151249#M454822</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2009-01-19T10:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: runawk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151250#M454823</link>
      <description>"I have assigned points to   0  of   68  responses to my questions. " in your profile does not sound encouraging! :)&lt;BR /&gt;&lt;BR /&gt;Please refer to &lt;A href="http://forums11.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt; to understand about the member point system.</description>
      <pubDate>Mon, 19 Jan 2009 10:14:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151250#M454823</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2009-01-19T10:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: runawk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151251#M454824</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I just so the connection to another thread of you:&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1302055" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1302055&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Your question and answers direct me to this awk program, which you should save as&lt;BR /&gt;file /usr/local/checkid.awk&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/awk -f -&lt;BR /&gt;BEGIN {FS=":"}&lt;BR /&gt;{&lt;BR /&gt;# print $1, $3, $5&lt;BR /&gt;if ($1 == "+") next&lt;BR /&gt;if ($5 == "") {&lt;BR /&gt;print "No user name for", $1&lt;BR /&gt;}&lt;BR /&gt;if ($3 == 0) {&lt;BR /&gt;print "superuser", $1, $5&lt;BR /&gt;if ($1 != "root") {&lt;BR /&gt;print "superuser but not root:", $1, $5, "&amp;lt;******"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Having done then the steps 1-4 of my previous post, execute this commandline under any directory:&lt;BR /&gt;/usr/local/checkid.awk /etc/passwd&lt;BR /&gt;&lt;BR /&gt;Additions:&lt;BR /&gt;1) There may other naming services (NIS,...) active, but this could be out of the scope you can handle by yourself.&lt;BR /&gt;ypcat passwd | /usr/local/checkid.awk&lt;BR /&gt;&lt;BR /&gt;would examine NIS for example.&lt;BR /&gt;&lt;BR /&gt;2) Can it be, that your clients notice was a direction to UIDs used on this system, not having an entry in a passwd database (/etc/passwd; NIS) at all?&lt;BR /&gt;For example, a command like&lt;BR /&gt;ls -ld "file-uid-only"&lt;BR /&gt;would not show a name in the user column but only a number for a file owned by such an UID.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;Peter&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jan 2009 10:32:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151251#M454824</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2009-01-19T10:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: runawk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151252#M454825</link>
      <description>Thanks</description>
      <pubDate>Thu, 12 Feb 2009 13:04:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runawk/m-p/5151252#M454825</guid>
      <dc:creator>unixadmin_1</dc:creator>
      <dc:date>2009-02-12T13:04:00Z</dc:date>
    </item>
  </channel>
</rss>

