07-19-2010
It`s not a class assignment, I`m just new at awk.
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a shell script that returns 10 records for the column Name and age from a select query. Where when i store those data in retrieve_list.txt file i need to store the data in a particular format like:-
$Jason$30
$Bill$23
$Roshan$25
Here is my script:
1)... (15 Replies)
Discussion started by: sachin.tendulka
15 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
I am trying to select some columns from a file, based on the list of values.
Would like to know how best I can achive this.
If coulmn 1 has a value of 57 then print the ist column (This works)
awk -F' ' '{if ( $1 == 57 ) {print $1}}' file.txt
Now my requirement is that I have to... (14 Replies)
Discussion started by: simha77777
14 Replies
3. Shell Programming and Scripting
My input file:
data_5 Ali 422 2.00E-45 102/253 140/253 24
data_3 Abu 202 60.00E-45 12/23 140/23 28
data_1 Ahmad 256 7.00E-45 120/235 140/235 22
data_4 Aman 365 8.00E-45 15/65 140/65 20
data_10 Jones 869 9.00E-45 65/253 140/253 18... (12 Replies)
Discussion started by: patrick87
12 Replies
4. Programming
Hey guys,
Is it possible to have a worker thread send data out a TCP connection while another thread is waiting using using select() on that same connection?
If not, then what is the correct way to maintain a connection, react to incoming data, and send data over a TCP connection?
Thanks... (16 Replies)
Discussion started by: scubanarc
16 Replies
5. Shell Programming and Scripting
Hi ,
I want to select data from a file .the datas in a file will be in both upper and lower case. can able to select particular data using awk.
file is like
Ram Selva 24332 UNIXTEAM
Karthi Siva 43322 UNIXTEAM
In read if i enter selva as lowercase its not displaying result. (9 Replies)
Discussion started by: boopal
9 Replies
6. Shell Programming and Scripting
I would like to recover the data from 3 text tags.
These three markers are located between the tags specific location <tag1> and </tag1> knowing that they are in many places.
In File.txt:
<tag2>txt2</tag2>
<tag3>txt3</tag3>
<tag4>txt4</tag4>
....
<tag1>
<tag2>txt2</tag2>... (3 Replies)
Discussion started by: Amad
3 Replies
7. Shell Programming and Scripting
Hi
I need help to configure AWK to find a string based From/To filed
I have a table like this
0A00 - 0AFF Nuts
0B00 - 0BFF Bolt
If I have in a program a value like "0B22" I wold like to get "Bolt" in return.
List are in Hex
Still try to learn AWK :) (3 Replies)
Discussion started by: Jotne
3 Replies
8. UNIX for Dummies Questions & Answers
Hello all,
Once again I need to call upon the masters for help. I have a file called endpoint_data. IN that file I have groups of endpoints. However all I need from the file is this....
ENDPOINT NAME = SIPWOODSBC
SIG PRI FQDN/IP ADDRESS/DOMAIN NAME = 10.xxx.xxx.xxx
SIG SEC... (4 Replies)
Discussion started by: jay11789
4 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I need to remove all files except the most update data based on date on filename
Input
data_AIDS_20150312.txt
data_AIDS_20150311.txt
data_AIDS_20150411.txt
data_AIDS_20140312.txt
the most updated data is data_AIDS_20150411.txt, so I'll remove other files. My expected output... (3 Replies)
Discussion started by: radius
3 Replies
10. Shell Programming and Scripting
I wish to use AWK to do something akin: Select all 2D data with 1<$1<2 and -7.5<$2<-6.5
But it's not working
awk 'END {print ($1<=2&&$1>=1&&$2<=-6.5&&$2>=-7.5)}' bla
Data:
-1.06897 -8.04482 -61.469
-1.13613 -8.04482 -61.2271
-1.00182 -8.04482 -61.2081
-1.06897 -8.13518 -60.8544... (2 Replies)
Discussion started by: chrisjorg
2 Replies
LEARN ABOUT NETBSD
statevar
StateVar(3U) InterViews Reference Manual StateVar(3U)
NAME
StateVar - state variable subject base class
SYNOPSIS
#include <Unidraw/statevar.h>
DESCRIPTION
StateVar is the base class for state variable subjects. State variables provide a standard way to represent and access state that can be
modified by the user or through dataflow. State variable subjects store the state, while state variable views provide a graphical inter-
face for examining and potentially modifying the state in their subject. The StateVar class defines the protocol for state variable sub-
jects. It is an abstract class and thus cannot be instantiated.
PUBLIC OPERATIONS
Connector* GetBinding()
Return the connector to which the state variable is bound to support dataflow. Data flows through connected connectors with bound
state variables: the library automatically assigns one bound state variable's state to another's. The direction of this assignment
depends on the participating connectors. See Connector(3U) for details on how to bind state variables to connectors and how to spec-
ify the direction of flow.
virtual void Attach(StateVarView*)
virtual void Detach(StateVarView*)
Attach associates the subject with a view, represented by an instance of a StateVarView subclass. Detach dissociates a previously
attached view. These operations do not ensure that the argument is an appropriate view of the subject.
virtual void Notify()
Notify iterates through the views, calling each one's Update operation to notify the view that the subject has potentially changed.
Notify is usually called by the subject's state-modifying operations.
virtual StateVar& operator = (StateVar&)
The assignment operation should be redefined to carry out subclass-specific assignment semantics. Typically this operator calls the
parent classes' assignment operator and then performs additional assignments of its own. This operator is used during dataflow to
transfer state variable values.
virtual StateVar* Copy()
Return a copy of the state variable. Subclasses should redefine this operation to return an instance of their type.
virtual void Read(istream&)
virtual void Write(ostream&)
Read and write the state variable's contents to a stream to support catalog operations. Read and write typically call first the
corresponding operations defined by their parent class, and then they read or write their class-specific state. Note that you must
ensure that the objects are read in the same order they are written.
virtual ClassId GetClassId()
virtual boolean IsA(ClassId)
GetClassId returns the unique class identifier for the StateVar subclass, while IsA returns whether the instance is of a class or
subclass corresponding to the given identifier. IsA typically checks the given identifier against the instance's own (as defined by
its GetClassId operation) and, failing that, calls its parent classes' IsA operation. All subclasses must redefine GetClassId and
IsA to ensure that their identifiers are unique and that instances are written and read properly.
PROTECTED OPERATIONS
StateVar()
The constructor is protected to prevent instantiation.
SEE ALSO
Catalog(3U), Connector(3U), Creator(3U), StateVarView(3U), classes(3U), istream(3C++), ostream(3C++)
Unidraw 6 August 1990 StateVar(3U)