09-15-2009
thnkz dr.house, for your reply, but for the below code the output is the last 60 lines of the file....
can u please advice me further....
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a list of names and email addresses, like this. The <tab> markers are actually tabs.
joe.blow <tab> joe.blow@wherever.com
tom.t.hall <tab> tom.t.hall@wherever.com
john.r.smith <tab> john.r.smith@wherever.com
sally.jones <tab> sally.jones@state.or.us
I want to parse the data so that... (3 Replies)
Discussion started by: manouche
3 Replies
2. Shell Programming and Scripting
Hi everybody:
I have a problem with how I have to manipulate the data which have specific format like this:
249. 0.30727021E+05 0.30601627E+05 0.37470780E-01 -0.44745335E+02 0.82674536E+03
248. 0.30428182E+05 0.30302787E+05 0.40564921E-01 -0.45210293E+02 ... (5 Replies)
Discussion started by: tonet
5 Replies
3. UNIX for Dummies Questions & Answers
All,
I have the following format of data in a spreadsheet
A 1
2
3
4
B 1
2
3
4
where 'A' is value of 'A1', '1 2 3 4' is value of cell B1, 'B' is value of cell A2, and '1 2 3 4' is value of cell B2.
There... (12 Replies)
Discussion started by: rahulrathod
12 Replies
4. Shell Programming and Scripting
Hey All,
I need to reorganize a file's text. Here is the source:
host John_Doe
filename "config.cfg";
hardware ethernet 98:10:3d:13:8f:98;
fixed-address 10.10.10.29;
}
host Jane_Doe
filename "config.cfg";
hardware ethernet 98:13:11:fd:5a:57;
fixed-address 10.10.5.24;
}
host... (2 Replies)
Discussion started by: TheBigAmbulance
2 Replies
5. Shell Programming and Scripting
Quick problem statement:
How to read/extract data from a big-big file.
Details:
We are having a big big problemo in the work we are working at. We are using solaris plarform E25.
There is a very big file created somewhere around 200 million records anad the lenght of each record is more than... (3 Replies)
Discussion started by: darshanw
3 Replies
6. Shell Programming and Scripting
Input
Participant number: HAC
Position type Location Distance_start Distance_end Range Mark
1 1 + Front 808 1083 276
2 1 + Front 1373 1636 264
3 1 - Back 1837 2047 211
Participant number: BCD
Position type... (6 Replies)
Discussion started by: patrick87
6 Replies
7. Shell Programming and Scripting
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
Discussion started by: Wynner
3 Replies
8. Shell Programming and Scripting
Hi
i want to manipulate my data to convert row to column
name
600
Slno vlan
1 600
2 609
3 700
name
700
Slno vlan
1 600
2 609
3 700 (8 Replies)
Discussion started by: nith_anandan
8 Replies
9. Shell Programming and Scripting
Hello;
I have this rather tricky problem to solve --(to me, anyways) ..
I am processing the following one liner with tcpdump..
tcpdump -i T3501 -A ether host 00:1e:49:29:fc:c9 or ether host 00:1b:2b:86:ec:1b or ether host 00:21:1c:98:a4:08 and net 149.83.6.0/24 | grep --line-buffered -B... (5 Replies)
Discussion started by: delphys
5 Replies
10. Shell Programming and Scripting
Hello good afternoon to everyone.
I'm new to the forum and would like to request your help in handling data. I hope my English is clear.
I have a file (Dato01.txt) to contine the following structure.
# Col1 - Col2 - Col3 - Col4
Patricia started Jun 22 05:22:58
Carolina started Jun... (5 Replies)
Discussion started by: kelevra
5 Replies
LEARN ABOUT OPENSOLARIS
posix_madvise
posix_madvise(3C) Standard C Library Functions posix_madvise(3C)
NAME
posix_madvise - memory advisory information
SYNOPSIS
#include <sys/mman.h>
int posix_madvise(void *addr, size_t len, int advice);
DESCRIPTION
The posix_madvise() function advises the system on the expected behavior of the application with respect to the data in the memory starting
at address addr, and continuing for len bytes. The system may use this information to optimize handling of the specified data. The
posix_madvise() function has no effect on the semantics of access to memory in the specified range, although it may affect the performance
of access.
The advice to be applied to the memory range is specified by the advice parameter and may be one of the following values:
POSIX_MADV_NORMAL Specifies that the application has no advice to give on its behavior with respect to the specified range. It is
the default characteristic if no advice is given for a range of memory.
POSIX_MADV_SEQUENTIAL Specifies that the application expects to access the specified range sequentially from lower addresses to higher
addresses.
POSIX_MADV_RANDOM Specifies that the application expects to access the specified range in a random order.
POSIX_MADV_WILLNEED Specifies that the application expects to access the specified range in the near future.
POSIX_MADV_DONTNEED Specifies that the application expects that it will not access the specified range in the near future.
These values are defined in <sys/mman.h>
RETURN VALUES
Upon successful completion, posix_madvise() returns zero. Otherwise, an error number is returned to indicate the error.
ERRORS
The posix_madvise() function will fail if:
EINVAL The value of advice is invalid.
ENOMEM Addresses in the range starting at addr and continuing for len bytes are partly or completely outside the range allowed for the
address space of the calling process.
The posix_madvise() function may fail if:
EINVAL The value of len is zero.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
|Standard |See standards(5). |
+-----------------------------+-----------------------------+
SEE ALSO
mmap(2), madvise(3C), posix_madvise(3C), attributes(5), standards(5)
SunOS 5.11 14 Jul 2008 posix_madvise(3C)