03-26-2007
I found few links but not sure will that work or not
link1
link2
link3
link4
If you can make it please share with us also...
all the best
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi
i have following file.
where i m trying to retrive data on latest date.
let us say we are extracting data from this file for Jun 30 where date is highest date in log file.
here i want to take output in other file from first line of Jun 30 to the end of file
in short i want retrive... (5 Replies)
Discussion started by: d_swapneel14
5 Replies
2. Shell Programming and Scripting
hi,
I need to get the list of functions that are used more than once in a file
list. Thanks in advance (1 Reply)
Discussion started by: anibu
1 Replies
3. Shell Programming and Scripting
Hi
In my script, users have the option to delete files from a directory, however, I don't want them to be able to delete the automatically generated log file.
Is there anyway to lock a file from being deleted?
Note: The file can't be read only as it has to be written to quite frequently.
... (3 Replies)
Discussion started by: Darren Taylor
3 Replies
4. Shell Programming and Scripting
Dear friends,
please tell me how to get some required lines from a file and write to another file using AWK command.
i.e.,
if a file contains,
abcdefghigk
12345
lmnopqrstuv
678910
wxyz
please tell me how to get lines(line count is always 2 and it's contineous) mentioned in blue... (1 Reply)
Discussion started by: swamymns
1 Replies
5. Shell Programming and Scripting
hi
i am new to shell scripting
i have a properties file like
hs=abc
hs1=def
hs2=ghi
now i want to retrive each value and assign it to a variable
like var1 = abc
please help (7 Replies)
Discussion started by: satish@123
7 Replies
6. Shell Programming and Scripting
Hello Everybody,
I'm facing a weird problem with the awk command.
I try to retrieve in a variable the value returned by a simple ls command.
ls /export/home/tmp |tail -1 return a good value (the name of the .
But When I try to execute the same command in a remote server using ssh as... (2 Replies)
Discussion started by: Jabarod
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
We have a file which needs supper user previleges to delete. There are 10 users having super user preveleges. Some times back that file got deleted. How to know who has deleted that file? (6 Replies)
Discussion started by: siba.s.nayak
6 Replies
8. Shell Programming and Scripting
I accidently deleted the files from linux machine. How to restore back the files. (1 Reply)
Discussion started by: sandy1028
1 Replies
9. UNIX for Dummies Questions & Answers
Hello friends!!
I have a question regarding the use of ls in unix. I have a folder with files:
t1.txt
t2.txt
t3.txt
t4.txt
...
t10.txt
When I make an ls I always get:
t10.txt
t1.txt
t2.txt
t3.txt
..
t9.txt (2 Replies)
Discussion started by: SaktiPhoenix
2 Replies
10. UNIX for Dummies Questions & Answers
I am using aqua studio DB. I need to retrive the data from my database using uxin script in .csv format. i am using select query along with the joins. my o/p in the DB is of the below format.
Cycle IDCycle StatusRecord 98N-0000ACV23-3636FCliet Level (Af)Success1689393HF-J7879-09090RCliet Level... (1 Reply)
Discussion started by: Mugivz
1 Replies
LEARN ABOUT OPENSOLARIS
sip_delete_header_by_name
sip_delete_start_line(3SIP) Session Initiation Protocol Library Functions sip_delete_start_line(3SIP)
NAME
sip_delete_start_line, sip_delete_header, sip_delete_header_by_name, sip_delete_value - delete a SIP header or a header value
SYNOPSIS
cc [ flag ... ] file ... -lsip [ library ... ]
#include <sip.h>
int sip_delete_start_line(sip_msg_t sip_msg);
int sip_delete_header(sip_msg_t sip_header);
int sip_delete_header_by_name(sip_msg_t msg,
char *header_name);
int sip_delete_value(sip_header_t sip_header,
sip_header_value_t sip_header_value);
DESCRIPTION
The sip_delete_start_line() function deletes the start line, a request or a response line, from the SIP message sip_msg.
The sip_delete_header() function deletes the SIP header specified by sip_header from the associated SIP message sip_msg.
The sip_delete_header_by_name() function deletes the SIP header name specified by header_name (long or compact form) from the SIP message
sip_msg.
The sip_delete_value() deletes the SIP header value specified by sip_header_value from the SIP header sip_header.
When a SIP header or value is deleted, the corresponding header or value is marked as deleted. Lookups ignore headers or values that are
marked as deleted.
RETURN VALUES
These functions return 0 on success and the appropriate error on failure.
The value of errno is not changed by these calls in the event of an error.
ERRORS
On failure, the returned error could be one of the following:
EINVAL If any of the required input is NULL.
If the header or value to be deleted does not exist.
If the header or value to be deleted has already been deleted.
EPERM If the SIP message cannot be modified.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
libsip(3LIB)
SunOS 5.11 20 Jan 2007 sip_delete_start_line(3SIP)