Can anyone explain to me why the first line doesn't work and the second seems to work fine. I am trying to find all occurances of text within a certain column (col 13) that start with the character V, I suppose it sounds simple but I have tried using the following but don't really understand what... (2 Replies)
Hi
Running a specific nawk statement over a 17m lines files returns the following:
/bin/nawk: not enough args in .....
input record number 1,25955e+06, file test.1
source line number 1
I'd like to report the line number (in bold above) in decimal not floating so that i can spot it out.
... (1 Reply)
Hi
Running a specific nawk statement over a 17m lines files returns the following:
/bin/nawk: not enough args in .....
input record number 1,25955e+06, file test.1
source line number 1
I'd like to report the line number (in bold above) in decimal not floating so that i can spot it out.
... (1 Reply)
Hi all,
I can run the following script using nawk..However, I find that teh server dun support nawk.. May I know how to change teh script to use awk such that it will work? Very urgent.. thx!
nawk 'BEGIN {FS=OFS=","}
NR==FNR{arr=$2;next}
$0 !~ "Documentation"{print $0;next} ... (2 Replies)
Hi Guys,
i tried these two commands. First in awk and nawk.
The nawk command is running fine but the awk command is throwing error.
What is wrong with the awk command. There are lot of awk commands running fine in my system
d003:/usr/local/dsadm/dsprod>nawk 'NR = 1 {print " "$0}' a.txt
... (6 Replies)
Hi everyone,
i am new to unix , so i want to know what is the use of awk and nawk.
because in most of the place this cmds were used.
so, if anyone provied the basic idea of this cmds, it will be much helpfull for me . . ..
Thnks in Advance :) (9 Replies)
Hi Guys,
I am in need of some help; I have an xml message file which contains personal details as shown below:
, message=, message=, message=, message=, message=, message=
I want to use nawk to parse these xml messages but I am new to awk and nawk.
What I want is to get output... (7 Replies)
Discussion started by: James_Owen
7 Replies
LEARN ABOUT HPUX
flockfile
flockfile(3S)flockfile(3S)NAME
flockfile(), ftrylockfile(), funlockfile() - explicit locking of streams within a multithread application
SYNOPSIS DESCRIPTION
The and functions provide for explicit application-level locking of streams. These functions can be used by a thread to delineate a
sequence of I/O statements that are to be executed as a unit.
The function is used by a thread to acquire ownership of a object.
The function is used by a thread to acquire ownership of a object if the object is available; is a non-blocking version of
The function is used to relinquish the ownership granted to the thread. The behavior is undefined if a thread other than the current owner
calls the function.
Logically, there is a count associated with each stream. This count is implicitly initialized to zero when the stream is created. The
stream is unlocked when the count is zero. When the count is positive, a single thread owns the stream. When the function is called, if
the count is zero or if the count is positive and the caller owns the stream, the count is incremented. Otherwise, the calling thread is
suspended, waiting for the count to return to zero. Each call to decrements the count. This allows matching calls to (or successful calls
to and to be nested.
All POSIX.1 and C standard functions that reference objects behave as if they use and internally to obtain ownership of these objects.
RETURN VALUE
None for and The function returns zero for success and nonzero to indicate that the lock cannot be acquired.
flockfile(3S)