04-18-2013
How to take care of trailing spaces. I don't want to measure these and put in the printf statement. Is there any direct way that these would be taken care of
5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to know that, how to inter change the lines.
In the following file two line are there first one is conatin PD next line PY.
But i want to first line PY and next line PD.
My file structure is like this:
TI Electronic Publishing
AU Robert
PD... (5 Replies)
Discussion started by: shankarao
5 Replies
2. Shell Programming and Scripting
Hi,
I have a quick question regarding vi editor.Is it possible to interchange two lines in vi editor without using the possibilites of cut-paste,copy paste etc?
Your help is appreciated!
Regards
Dileep (4 Replies)
Discussion started by: DILEEP410
4 Replies
3. Shell Programming and Scripting
hi;
my file1.txt:
cell137 1
cell337 1
cell355 1
cell355 3
cell360 1
cell360 2
cell360 3
my file2.txt:
...
cell137 1 20.64.1.97
cell137 2 20.64.1.97
cell137 3 20.64.1.97
...
cell337 1 20.64.1.113
cell337 2 20.64.1.113
cell337 3 20.64.1.113 (4 Replies)
Discussion started by: gc_sw
4 Replies
4. Shell Programming and Scripting
Hi,
I have following input and want to change it to following output
INPUT
01-APR-14,KB,822714
01-APR-14,MB,8133431
02-APR-14,KB,757140
02-APR-14,MB,7770368
03-APR-14,KB,815427
03-APR-14,MB,7590511
04-APR-14,MB,7529895
04-APR-14,KB,779561
05-APR-14,MB,8151537
05-APR-14,KB,809675
... (6 Replies)
Discussion started by: siramitsharma
6 Replies
5. Shell Programming and Scripting
I used the below script to Sum up a field in a file based on some unique values. But the problem is when it is summing up the units, it is truncating to 2 decimals and not 6 decimals as in the input file (Input file has the units with up to 6 Decimals – Sample data below, when the units in the 2... (4 Replies)
Discussion started by: brlsubbu
4 Replies
put(9F) Kernel Functions for Drivers put(9F)
NAME
put - call a STREAMS put procedure
SYNOPSIS
#include <sys/stream.h>
#include <sys/ddi.h>
void put(queue_t *q, mblk_t *mp);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
q Pointer to a STREAMS queue.
mp Pointer to message block being passed into queue.
DESCRIPTION
put() calls the put procedure ( put(9E) entry point) for the STREAMS queue specified by q, passing it the message block referred to by mp.
It is typically used by a driver or module to call its own put procedure.
CONTEXT
put() can be called from a STREAMS module or driver put or service routine, or from an associated interrupt handler, timeout, bufcall, or
esballoc call-back. In the latter cases, the calling code must guarantee the validity of the q argument.
Since put() may cause re-entry of the module (as it is intended to do), mutexes or other locks should not be held across calls to it, due
to the risk of single-party deadlock (put(9E), putnext(9F), putctl(9F), qreply(9F)). This function is provided as a DDI/DKI conforming
replacement for a direct call to a put procedure.
SEE ALSO
put(9E), freezestr(9F), putctl(9F), putctl1(9F), putnext(9F), putnextctl(9F), putnextctl1(9F), qprocson(9F), qreply(9F)
Writing Device Drivers
STREAMS Programming Guide
NOTES
The caller cannot have the stream frozen when calling this function. See freezestr(9F).
DDI/DKI conforming modules and drivers are no longer permitted to call put procedures directly, but must call through the appropriate
STREAMS utility function, for example, put(9E), putnext(9F), putctl(9F), and qreply(9F). This function is provided as a DDI/DKI conforming
replacement for a direct call to a put procedure.
The put() and putnext() functions should be called only after qprocson() is finished.
SunOS 5.10 28 Apr 1992 put(9F)