Search Results

Search: Posts Made By: mvalonso
2,851
Posted By mvalonso
Thanks!!! It works perfectly!!!!
Thanks!!! It works perfectly!!!!
2,851
Posted By mvalonso
Grep a section from an UNIX file obtaining only part of the data
Hello,

I have a log file that has several sections "BEGIN JOB, End of job" like in the following example:


19/06/12 - 16:00:57 (27787398-449294): [I] BEGIN JOB j1(27787398-449294) JOB1
...
3,885
Posted By mvalonso
awk to print blank line between files
I have an AWK command that goes like this:

awk '/from BOITE_AUX_LETTRES/,/end-procedure|END-PROCEDURE|end-select|END-SELECT/ {print FILENAME,FNR,$0}' *prp

I get my results as follows:
...
1,486
Posted By mvalonso
It worked just fine!!! Thanks a lot!
It worked just fine!!! Thanks a lot!
1,486
Posted By mvalonso
Compare lines in 2 files
I have 2 files with exactly the same information (with header and separated by ";") and what I would like to do is print (for both files!) the columns that are different and also print the "key"...
4,092
Posted By mvalonso
I adapted it a little bit and it worked! :b:
I adapted it a little bit and it worked! :b:
4,092
Posted By mvalonso
Sorry, it didn't work. :( I thought it had to do...
Sorry, it didn't work. :( I thought it had to do with the fact that we're searching for "FROM" and "WHERE" clauses in uppercase so I added a

tr [:lower:] [:upper:]

before the AWK instruction,...
4,092
Posted By mvalonso
Thks! I will try it!
Thks! I will try it!
4,092
Posted By mvalonso
Somthing like: TABLE1, TABLE2, ... or ...
Somthing like:

TABLE1, TABLE2, ...

or

TABLE1
TABLE2

just the names of the tables appearing in the FROM clause.
Thks.

---------- Post updated at 03:16 PM ---------- Previous update...
4,092
Posted By mvalonso
Just the name of the tables separated by , or any...
Just the name of the tables separated by , or any other delimiter or one table name per line in the output. No preference. Just want to know the tables involved without having to look deeply in the...
4,092
Posted By mvalonso
.... Pro*C sentences .... /*SQL 1*/ EXEC...
....
Pro*C sentences
....
/*SQL 1*/
EXEC SQL SELECT t1.field1, t1.field2
INTO :w_field
FROM TABLE1 t1, TABLE1 t2
WHERE t1.field1 = t2.field1
AND t1.ID = :wl_id;
....
Pro*C sentences
.......
4,092
Posted By mvalonso
awk script to parse SQL from Pro*C program
Hello,

I have a Pro*C program which contains SQL sentences, such as:


....
Pro*C sentences
....
/*SQL 1*/
EXEC SQL SELECT t1.field1, t1.field2
INTO :w_field
FROM TABLE1 t1, TABLE1 t2...
783
Posted By mvalonso
AWK script
Hello !

I have a simple AWK script that prints sections of files containing SELECT or select up to ";".
It goes like this:
awk '/select|SELECT/,/;/' filename

Now I would like to add a blank...
3,058
Posted By mvalonso
Thank you very much! I understand the idea. ...
Thank you very much!
I understand the idea.

I changed it to

a[$1]<=2

and I got 2 ocurrences instead of 1.
3,058
Posted By mvalonso
Thanks bartus11! Just to understand better what...
Thanks bartus11!
Just to understand better what I'm doing, what does the part

a[$1]=1

mean?
3,058
Posted By mvalonso
Grep distinct
Hello,

I have a file which looks like:

%_SPE_RDP_NUM_ECH(7)*************%
%_SPE_RDP_NUM_ECH(70)************%
%_SPE_RDP_NUM_ECH(71)************%
%_SPE_RDP_NUM_ECH(72)************%...
3,574
Posted By mvalonso
Thks a lot!!!!!
Thks a lot!!!!!
3,574
Posted By mvalonso
I get the following error: Unrecognized...
I get the following error:

Unrecognized command: /\"/,$/d
3,574
Posted By mvalonso
Sed question
I want to delete in all lines of a file, from a given position (in fact, the position where I find the character ") until the end of line.
How can I do this?
Thks in advance.
2,523
Posted By mvalonso
Yes, it worked! I was trying to achieve it in...
Yes, it worked!
I was trying to achieve it in one regex all together.
But it worked just fine.

Thanks a lot!
2,523
Posted By mvalonso
grep with Regex help!
Hello everybody,

I'd like to know how is it I should write a regex in unix to match a string not followed by another string (anywhere in the line).

To be more specific, I want to find lines...
7,690
Posted By mvalonso
Thank you very much for your help!!! I could make...
Thank you very much for your help!!! I could make it work just perfect!!!!!
7,690
Posted By mvalonso
Sed character number specification
I have the following sed command:

sed...
6,131
Posted By mvalonso
Thks very much! I worked it out! My last...
Thks very much! I worked it out!
My last question would be: is there a way to save the contents of the modified file to the SAME file?
Thks again!
6,131
Posted By mvalonso
OK. Can you please tell me how it should be done?...
OK. Can you please tell me how it should be done?
Thks!!!!
Showing results 1 to 25 of 33

 
All times are GMT -4. The time now is 07:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy