Hi all,
im a linux newbie, plz help!
I have a file -
box
--------
Fox-2
--------
UF29
zip42
--------
zf-CW
SNF2_N
Heli_Z
--------
Fox
--------
Kel_1
box (3 Replies)
Hi,
I need to extract <APPNUMBER> tag alone, if the <college> haas IIT Chennai value. college tag value will have spaces embedded. Those spaces should not be suppresses.
My Source file
<Record><sno>1</sno><empid>E0001</empid><name>Rejsh suderam</name><college>IIT ... (3 Replies)
Hi
i am in learning phase of unix
i am able to understand basic of awk but not able to understand Pattern-Specific Actions in awk below is the snippet .
awk '
/ *\$*\. */ { print $1,$2,$3,"*"; }
/ *\$0\. */ { print ; }
' fruit_prices.txthere i am not getting the use of wild card. what... (4 Replies)
Hi,
I'm trying to replace a string with sed, in a text file containing this pattern:
location alpha
value x
location beta
value y
location gamma
value y
location delta
value y
location theta
value z
...
What I want to achieve is:
Find location beta into text file... (1 Reply)
Hello All
I'm trying to change one string from a file contening this patern:
xxxx-xxxx
4 numbers - end 4 other numbers
This is a sample of the file:
LDR 00679 am a2200205 4500
=001 3617
=008 030219s2000\\\\xxx|||||\||||\00|\0\spa\d
=020 \\$a0211-1942
=041 \\$aCastellà
=093 ... (5 Replies)
Gents,
I am trying to delete all lines which start with "H" character, but keeping the fist header. Example In the input file I will delete all lines starting from line 8 which contents character "H" to the end of the file.
I try
sed '8,10000{/^H/d;}' file
But as don't know the end... (1 Reply)
Hi
This is my first post and I'm just a beginner. So please be nice to me.
I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file?
I have tried sed -n 241,241p... (13 Replies)
Hi guys,
I am running a while loop in a script ro read a file line by line.
Now I want to run a grep only on the lines below the line I am that is being read by the while loop.
Eg:
If my while loop is on line 4 of the file, the grep only runs below line 4 and does not include line 1,2... (3 Replies)
Hello,
I need to cut a specific pattern from a line irrespecitve of knowing field place.
I am aware to cut field if you know the place of the field, but for me The sting place varies.
1468129514436,0,something_error,Non HTTP response code: java.net.URISyntaxException,Non HTTP response... (5 Replies)
Discussion started by: mirwasim
5 Replies
LEARN ABOUT OPENSOLARIS
fcpatternadd-type
FcPatternAdd-Type(3)FcPatternAdd-Type(3)NAME
FcPatternAddInteger, FcPatternAddDouble, FcPatternAddString, FcPatternAddMatrix, FcPatternAddCharSet, FcPatternAddBool, FcPatternAddFTFace,
FcPatternAddLangSet - Add a typed value to a pattern
SYNOPSIS
cc [ flag... ] file... -lfontconfig [ library... ]
#include <fontconfig.h>
FcBool FcPatternAddInteger (FcPattern *p, const char *object, int i);
FcBool FcPatternAddDouble (FcPattern *p, const char *object, double d);
FcBool FcPatternAddString (FcPattern *p, const char *object, const FcChar8 *s);
FcBool FcPatternAddMatrix (FcPattern *p, const char *object, const FcMatrix *m);
FcBool FcPatternAddCharSet (FcPattern *p, const char *object, const FcCharSet *c);
FcBool FcPatternAddBool (FcPattern *p, const char *object, FcBool b);
FcBool FcPatternAddFTFace (FcPattern *p, const char *object, const FT_Facef);
FcBool FcPatternAddLangSet (FcPattern *p, const char *object, const FcLangSet *l);
DESCRIPTION
These are all convenience functions that insert objects of the specified type into the pattern. Use these in preference to FcPatternAdd as
they will provide compile-time typechecking. These all append values to any existing list of values.
VERSION
Fontconfig version 2.5.0
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWfontconfig |
+-----------------------------+-----------------------------+
|Interface Stability |Volatile |
+-----------------------------+-----------------------------+
|MT-Level |See XInitThreads(3X11) |
+-----------------------------+-----------------------------+
13 November 2007 FcPatternAdd-Type(3)