Hello,
I am trying to covert a for statement into a single awk script and I've got everything but one part.
I also need to execute an external script when "not found", how can I do that ?
for TXT in `find debugme -name "*.txt"` ;do
FPATH=`echo $TXT | sed 's/\(.*\)\/\(.*\)/\1/'`
how... (7 Replies)
why does sed 's/.* //' show the last word in a line
and
sed 's/ .*//' show the first word in a line? How is that blank space before or after the ".*" being interpreted in the regex?
i would think the first example would delete the first word and the next example would delete the second... (1 Reply)
Hello,
let's start by giving you guys a few examples of the text:
"READ /TEXT123/ABC123"
"READ /TEXT123/ABC123/"
"READ TEXT123/ABC123"
"READ TEXT123/ABC123/"
"READ TEXT123/TEXT456/ABC123"
"READ /TEXT123/TEXT456/ABC123"
"READ /TEXT123/TEXT456/ABC123/"
TEXT and ABC can be and I... (5 Replies)
Hello,
I need to construct a pattern to match the below string (especially the timestamp at the beginning)
20101222100436_temp.dat
The below pattern works _temp.dat
However I am trying find if there are any other better representations.
I tried {14}, but it did not work.
I am on... (5 Replies)
I need RegEx to delete text block delimited by "^--" and "^request saved" if the block contained the pattern "FAILED:No air,rail,hotel or car" in the following.
Many thanks in advance!
company_id=9292 queue_id=72 internationalOnly=0
Building XML...
ABC123
Adding passenger first=First ... (1 Reply)
Fairly straightforward, but I'm having an awful time getting what I thought was a simple regex to work. I'll give the command I was playing with, and I'm aware why this one doesn't work (the 1,3 is off the A-Z, not the whole expression), I just don't know what the fix is:
Actual Output(s):
$... (5 Replies)
Hi
We have a tool to monitor logs in our environment. The tool accepts log pattern match only using regex and I accept I am a n00b in that:confused:. I had been banging my head to make it work without much success and at last had to turn on to my last option to post it here. I had got great... (2 Replies)
The sample file:
dept1: user1,user2,user3
dept2: user4,user5,user6
dept3: user7,user8,user9
I want to match by '/^dept2.*/' but don't want to have substring 'dept2:' in output. How to compose such regex? (8 Replies)
Hi
In a file I have string in multiple lines. Like below:
<?=test.getObjectName("L", "testTBL","D") ?>
<?=test.getObjectName("L", "testTBL","testDB", "D") ?>
I want to use regex to search for the pattern "<?=test.getObjectName...?>"
If the parenthesis has 3 parameters then return 2nd... (5 Replies)
Discussion started by: dashing201
5 Replies
LEARN ABOUT X11R4
phvia
PHVIA(3) MBK PHYSICAL STRUCTURE DEFINITIONS PHVIA(3)NAME
phvia - mbk physical contact
DESCRIPTION
The phvia structure is used to describe a via or contact belonging to a symbolic layout model, see phfig(3) for details.
The declarations needed to work on phvia are available in the header file "/labo/include/mph402.h", where '402' is the actual mbk version.
The following C structure supports the description of the via :
typedef struct phvia {
struct phvia *NEXT;
char TYPE;
long XVIA,YVIA;
struct ptype *USER;
} phvia_list;
NEXT Pointer to the next phvia in the list.
XVIA, YVIA Coordinates of the center of the via. Vias are macro generated patterns, so only their center is a matter of concern.
TYPE Via type. The legal types for via are
CONT_POLY poly alu1 contact
CONT_VIA alu2 alu1 contact
CONT_DIF_N alu1 difn contact
CONT_DIF_P alu1 difp contact
CONT_BODY_N alu1 nwell contact
CONT_BODY_P alu1 pwell contact
CONT_VIA2 alu2 alu3 contact
C_X_N L shaped N transistor corner filling
C_X_P L shaped P transistor corner filling
USER Pointer to a ptype list, see ptype(3) for details, that is a general purpose pointer used to share informations on the
via.
SEE ALSO mbk(1), addphvia(3), delphvia(3), phfig(3), ptype(3).
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM /LIP6 October 1, 1997 PHVIA(3)