Hi ppl,
I am a bit lost on this...can some one assist. I know this can be down with awk or sed, but i cant get the exact syntax right.
I need to only extract the numbers from a signle word ( eg abcd.123.xyz )
How can i extract 123 only ?
Thanks (14 Replies)
I have a file which will have rows like shown below,
ST*820*316054716
RMR*IV*11333331009*PO*40.31
REF*IV*22234441009*xsss471-2762
DTM*003*091016
ENT*000006
RMR*IV*2222234444*PO*239.91
REF*IV*1234445451009*LJhjlkhkj471-2762 </SPAN>
DTM*003*
091016
RMR*IV*2223344441009*PO*40.31... (18 Replies)
Hi All,
I have a word "DE_PR_Package__Basic" , i need to check if the first two characters of this words is DE or something else using perl script.
Can anyone pls let me know how to proceed?
Thanks in advance.
Giri! (3 Replies)
Hi,
I was trying to extract the last word with all numbers using awk. like the below example. I am looking for a pattern using awk.
desired result: (13 Replies)
Hi all,
I have ot match sentence list and word list anf fetch similar words in a separate file
second file with 2 columns
So I want the output shuld be 2 columns like this (3 Replies)
Hi all,
I have 7 words
Now I have 1 file which contain data in large number of rows and columns
and 6th column contain any of these words or may be more than one words among above 7 words:
I want
script should search for the above mentioned 7 words in the 6th column
... (9 Replies)
Hi all
I have following file which I have to edit for research purpose
file:///tmp/moz-screenshot.png body, div, table, thead, tbody, tfoot, tr, th, td, p { font-family: "Liberation Sans"; font-size: x-small; } Drug: KRP-104 QD Drug: Placebo Drug: Metformin|Drug:... (15 Replies)
Hi experts, I've been struggling to format a large genetic dataset. It's complicated to explain so I'll simply post example input/output
$cat input.txt
ID GENE pos start end
blah1 coolgene 1 3 5
blah2 coolgene 1 4 6
blah3 coolgene 1 4 ... (4 Replies)
I have a file with some SQL query, I want to fetch only Table Name from that file line by line.
INPUT FILE
SELECT * FROM $SCHM.TABLENAME1;
ALTER TABLE $SCHM.TABLENAME1 ADD DateOfBirth date;
INSERT INTO $SCHM.TABLENAME1 (CustomerName, Country) SELECT SupplierName, Country FROM $SCHM.TABLENAME2... (2 Replies)
Hello
I have an file with this content
--------------------------------------------
timer
one
timer
two
timer
three
timer
four
timer
five
timer
six
timer
seven
-------------------------------------------
And I want the following output.... (4 Replies)
Discussion started by: thailand
4 Replies
LEARN ABOUT OPENSOLARIS
slpparsesrvurl
SLPParseSrvURL(3SLP) Service Location Protocol Library Functions SLPParseSrvURL(3SLP)NAME
SLPParseSrvURL - parse service URL
SYNOPSIS
cc [ flag... ] file... -lslp [ library... ]
#include <slp.h>
SLPError SLPParseSrvURL(const char *pcSrvURL, SLPSrvURL** ppSrvURL);
DESCRIPTION
The SLPParseSrvURL() routine parses the URL passed in as the argument into a service URL structure and returns it in the ppSrvURL
pointer. If a parser error occurs, returns SLP_PARSE_ERROR. The structure returned in ppSrvURL should be freed with SLPFree().
If the URL has no service part, the s_pcSrvPart string is the empty string, "", that is, it is not NULL. If pcSrvURL is not a
service: URL, then the s_pcSrvType field in the returned data structure is the URL's scheme, which might not be the same as the
service type under which the URL was registered. If the transport is IP, the s_pcNetFamily field is the empty string.
If no error occurs, the return value is the SLP_OK. Otherwise, if an error occurs, one of the SLPError codes is returned.
PARAMETERS
pcSrvURL A pointer to a character buffer containing the null terminated URL string to parse. It is destructively modified to pro-
duce the output structure. It may not be NULL.
ppSrvURL A pointer to a ponter for the SLPSrvURL structure to receive the parsed URL. It may not be NULL.
ERRORS
This function or its callback may return any SLP error code. See the ERRORS section in slp_api(3SLP).
EXAMPLES
Example 1 Using SLPParseSrvURL()
The following example uses the SLPParseSrvURL() function to parse the service URL service:printer:lpr://serv/queue1:
SLPSrvURL* surl;
SLPError err;
err = SLPParseSrvURL("service:printer:lpr://serv/queue1", &surl);
ENVIRONMENT VARIABLES
SLP_CONF_FILE When set, use this file for configuration.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWslpu |
+-----------------------------+-----------------------------+
SEE ALSO slpd(1M), slp_api(3SLP), slp.conf(4), slpd.reg(4), attributes(5)
System Administration Guide: Network Services
Guttman, E., Perkins, C., Veizades, J., and Day, M. RFC 2608, Service Location Protocol, Version 2. The Internet Society. June 1999.
Kempf, J. and Guttman, E. RFC 2614, An API for Service Location. The Internet Society. June 1999.
SunOS 5.11 16 Jan 2003 SLPParseSrvURL(3SLP)