What have you tried to solve this problem on your own? Where are you stuck?
Why isn't the output from the second line in your example:
There are two occurrences of SB in that line and three additional occurrences of B as well (one before the first SB, one between the two occurrences of SB, and one after the last SB).
Hi Guys,
I have a file as follows:
a b c 1 2 3 4
pp gg gh hh 1 2 fm 3 4
g h i j k l m 1 2 3 4
d e f g h j i k l 1 2 3 f 3 4
r t y u i o p d p re 1 2 3 f 4
t y w e q w r a s p a 1 2 3 4
I am trying to extract all the 2's from each row. 2 is just an example... (6 Replies)
I have hundreds of files to process. In each file
I need to look for a pattern then
extract value(s) from next line and then
search for value(s) selected from point (2) in the same file at a specific position.
HEADER ELECTRON TRANSPORT 18-MAR-98 1A7V
TITLE CYTOCHROME... (7 Replies)
Hi,
I have long string in 2nd field, as shown below:
REF1 | CLESCLJSCSHSCSMSCSNSCSRSCUDSCUFSCU7SCV1SCWPSCXGPDBACAPA0DHDPDMESED6
REF2 | SBR4PCBFPCDRSCSCG3SCHEBSCKNSCKPSCLLSCMCZXTNPCVFPCV6P4KL0DMDSDSASEWG
I have a group of fixed patterns which can occur in these long strings & only... (11 Replies)
Hi experts , im new to Unix,AWK ,and im just not able to get this right.
I need to match for some patterns if it matches I need to print the next few words to it.. I have only three such conditions to match… But I need to print only those words that comes after satisfying the first condition..... (2 Replies)
Ive used this snippet of code on a solaris box thousands of times.
But it isnt working on the new linux box
sed -n '/interface LoopBack0/{N;/ ip address /p;}' *.conf
its driving me nuts !!
Is there something Im missing ? (7 Replies)
Hi all,
I got a file that contains the following content, Actually it is a part of the file content,
Installing XYZ XYZA Image, API 18, revision 2
Unzipping XYZ XYZA Image, API 18, revision 2 (1%)
Unzipping XYZ XYZA Image, API 18, revision 2 (96%)
Unzipping XYZ XYZA Image, API 18,... (7 Replies)
Im using the command below , but thats not the output that i want. it only prints the odd and even numbers.
awk '{if(NR%2){print $0 > "1"}else{print $0 > "2"}}'
Im hoping for something like this
file1:
Text hi this is just a test
text1 text2 text3 text4 text5 text6
Text hi... (2 Replies)
Hello Experts , require help . See below output:
File inputs
------------------------------------------
Server Host = mike
id rl images allocated last updated density
vimages expiration last read <------- STATUS ------->... (4 Replies)
Discussion started by: tigerhills
4 Replies
LEARN ABOUT OPENSOLARIS
sdp_delete_all_field
sdp_delete_all_field(3COMMPUTIL) Communication Protocol Parser Utilities Library Functions sdp_delete_all_field(3COMMPUTIL)NAME
sdp_delete_all_field, sdp_delete_all_media_field - delete all SDP fields
SYNOPSIS
cc [ flag...] file... -lcommputil [ library...]
#include <sdp.h>
int sdp_delete_all_field(sdp_session_t *session,
const char field);
int sdp_delete_all_media_field(sdp_media_t *media,
const char field);
DESCRIPTION
The sdp_delete_all_field() function deletes all the occurrences of the specified SDP field from the session structure. For example, if the
session structure has 3 bandwidth (b=) fields, then when this function is called with SDP_BANDWIDTH_FIELD, all the three bandwidth fields
are deleted from the session structure.
The sdp_delete_all_media_field() function deletes all the occurrences of the specified SDP field from the specified media structure. For
example, if the caller wants to delete all the attribute fields in a media structure, calling this function with SDP_ATTRIBUTE_FIELD argu-
ment would delete all the attribute fields in the media structure.
RETURN VALUES
Upon successful completion, these functions return 0. Otherwise, the appropriate error value is returned. The value of errno is not changed
by these calls in the event of an error.
ERRORS
These functions will fail if:
EINVAL The session or media argument is NULL or the field type is unknown.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO libcommputil(3LIB), attributes(5)SunOS 5.11 12 Oct 2007 sdp_delete_all_field(3COMMPUTIL)