Try this:
The "%.*" (percent period asterisk) strips off exactly one period and the remaining characters from the end.
The "##*." (pound pound asterisk period) strips off all characters up to the last period plus the period from the front.
Ok, I'm stumped and can't seem to find relevant info.
(I'm not even sure, I might have asked something similar before.):
I'm trying to use shell scripting/UNIX commands to extract URLs from a fairly large web page, with a view to ultimately wrapping this in PHP with exec() and including the... (2 Replies)
Hi awk and sed gurus,
Please help me in the following.
I have the following entries in the file
ABCDErules
AbHDPrules
ABCrules
--
--
and other entries in the file.
Now, I want to extract from the file that contain entries for *rules and process it separately.
How can i do it... (6 Replies)
Hi,
I would like to extract a substring from a string in unix.
eg:
./checkfile.sh -- i need only checkfile.sh from this string.
Could someone help me out in this...
Regards
Arun (19 Replies)
Hi,
I have string in variable like '/u/dolfin/in/DOLFIN.PRL_100.OIB.TLU.001.D20110520.T040010'
and i want to conevrt this string into only "DOLFIN.PRL_100.OIB.TLU.001.D20110520.T040010" (i.e file name).
Is there any command to extracting string in some part ?(rather than whole path)?
... (5 Replies)
Hi all,
I need to extract the "abcdef" from the below string Digital_abcdef_20130103.txt.gz
The length of the "abcdef" will be changing but it will be always after the word Digital_ and before the second underscore
help in this regard is highly appreciated (3 Replies)
Hi,
I am new to Unix. I am trying to extract a substring from an input string: Ex -
input string: deploy_v11_9_1
i want to extract and store the value v11_9_1 from the input string in a new variable.
I am using following command in my shell script file:
echo "Enter the folder name u... (5 Replies)
hello.
I get this text when using some command :
S | Name | Type | Version | Arch | Repository
--+-----------------+---------+---------+------+-------------
| AdobeReader_enu | package | 9.5.4-1 | i486 | zypper_local
I need to get "AdobeReader_enu" from the the pattern "Ado"... (7 Replies)
Hi All
I have a line which is as below
1234567 Gagan Paswani zz23432 1000000000 1000000000 ASTHEYXX-RTUC zz23432
I need to extract the first occurence of zz23432 which will have the reg expression as
{2}{5}
Could you please assist as to how I can extract this... (3 Replies)
Hi All,
I'm facing issue wherein I have 2 character string like 'CR' and 'DR' and I want to extract just 1st character but am unable to do it. I tried below options but they are returning me 2nd character only,
var="CR"
echo ${var:1}
returns just "R"
echo ${var:0}
returns "CR"
... (5 Replies)
Discussion started by: arvindshukla81
5 Replies
LEARN ABOUT ULTRIX
xrmstringtobindingquarklist
XrmUniqueQuark(3X11) MIT X11R4 XrmUniqueQuark(3X11)Name
XrmUniqueQuark, XrmStringToQuark, XrmQuarkToString, XrmStringToQuarkList, XrmStringToBindingQuarkList - manipulate resource quarks
Syntax
XrmQuark XrmUniqueQuark()
#define XrmStringToName(string) XrmStringToQuark(string) #define XrmStringToClass(string) XrmStringToQuark(string) #define XrmStringToRep-
resentation(string) XrmStringToQuark(string)
XrmQuark XrmStringToQuark(string)
char *string;
#define XrmNameToString(name) XrmQuarkToString(name) #define XrmClassToString(class) XrmQuarkToString(class) #define XrmRepresentation-
ToString(type) XrmQuarkToString(type)
char *XrmQuarkToString(quark)
XrmQuark quark;
#define XrmStringToNameList(str, name) XrmStringToQuarkList((str), (name)) #define XrmStringToClassList(str,class) XrmStringToQuark-
List((str), (class))
void XrmStringToQuarkList(string, quarks_return)
char *string;
XrmQuarkList quarks_return;
XrmStringToBindingQuarkList(string, bindings_return, quarks_return)
char *string;
XrmBindingList bindings_return;
XrmQuarkList quarks_return;
Arguments
bindings_return
Returns the binding list.
quark Specifies the quark for which the equivalent string is desired.
quarks_return
Returns the list of quarks.
string Specifies the string for which a quark is to be allocated.
Description
The function allocates a quark that is guaranteed not to represent any string that is known to the resource manager.
These functions can be used to convert to and from quark representations. The string pointed to by the return value must not be modified
or freed. If no string exists for that quark, returns NULL.
The function converts the specified resource quark representation back to a string.
The function converts the null-terminated string (generally a fully qualified name) to a list of quarks. Note that the string must be in
the valid ResourceName format. The components of the string are separated by a period or asterisk character.
A binding list is a list of type and indicates if components of name or class lists are bound tightly or loosely (that is, if wildcarding
of intermediate components is specified).
typedef enum {XrmBindTightly, XrmBindLoosely} XrmBinding,
*XrmBindingList;
indicates that a period separates the components, and indicates that an asterisk separates the components.
The function converts the specified string to a binding list and a quark list. Component names in the list are separated by a period or an
asterisk character. If the string does not start with period or asterisk, a period is assumed. For example, ``*a.b*c'' becomes:
quarks a b c
bindings loose tightloose
See AlsoXrmGetResource(3X11), XrmInitialize(3X11), XrmMergeDatabases(3X11), XrmPutResource(3X11)
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
XrmUniqueQuark(3X11)