Search Results

Search: Posts Made By: claw82
9,765
Posted By claw82
Yes, sorry, it matches a range, i didn't express...
Yes, sorry, it matches a range, i didn't express correctly.

>You want to "go back" from what after matching "<\POLITIC>"? Back from "<\POLITIC>" or back from the line before "<\POLITIC>"?

I...
1,615
Posted By claw82
Ok , then I use you solution with some...
Ok , then

I use you solution with some modifications in my code and it works.

Thanks!
9,765
Posted By claw82
Go back in AWK
Hello!

I need to come back one line in awk when i detect a regular expression, i'm working with this:


/<POLITIC>/,/<\/POLITIC>/


when i found the line that matches with <\/POLITIC> i need...
1,615
Posted By claw82
if i have: #<LOOP_TIME> something ...
if i have:

#<LOOP_TIME>
something
</LOOP_TIME>

it works, don't match

But i have:

<LOOP_TIME>
something
#</LOOP_TIME>

it doesn't works, match when don't must
1,615
Posted By claw82
I can't use this because i'm working in an awk...
I can't use this because i'm working in an awk script
1,615
Posted By claw82
Problem with a regular expression
Hello!

I'm working with AWK, and i have this code:

/<LOOP_TIME>/,/<\/LOOP_TIME>/


I want that match every everything between <LOOP_TIME> and </LOOP_TIME>, but not if the line have a "#"...
2,160
Posted By claw82
Yes it works!!! Thanks so much!!!! But...
Yes it works!!!

Thanks so much!!!!

But why this happens?
2,160
Posted By claw82
Problem with if in awk
Hello! I'm trying to compare a number extracted from a text file and compare with a number, but it doesn't works correctly.

My text file contains this


time= 236s


I capture this with a...
24,179
Posted By claw82
The solution proposed for Franklin is good for...
The solution proposed for Franklin is good for me, because i can't use the END instruction, i need to know the end of file in the body of my awk.

Thanks!
24,179
Posted By claw82
End of file in AWK
Hello!

I need to control when i arrive to the end of my file, any built-in? or another way to do?

Thanks!
1,420
Posted By claw82
complexing dd
Hello!

i wanna do dd of a file, but with some peculiarities, if i have a file with 30 Mb, and i do blocks of 3Mb(bs=3M), how can i do dd only in the block 3 and 6 for example?

Thanks!
7,167
Posted By claw82
Thanks Scrutinizer, is just that i need!!! ...
Thanks Scrutinizer, is just that i need!!!

And thanks to the other people too!
7,167
Posted By claw82
Yes, just it!
Yes, just it!
7,167
Posted By claw82
I found a lot of posts of this, but i don't...
I found a lot of posts of this, but i don't believe that not exists a built-in function for do this, really I need to copy the function to my code? or what i didnt' understand?
7,167
Posted By claw82
I can't use this, because i need to pass a date,...
I can't use this, because i need to pass a date, not a file.
7,167
Posted By claw82
Calculating the difference between dates
Hello!

i need to find files lower and bigger that one date i pass, i search in the man find, but i didn't find anything, the only that i find is the parameter -mtime, in this parameter i can pass...
22,084
Posted By claw82
Ok, i understand! i have an error in the * ...
Ok, i understand! i have an error in the *

Thanks so much!!!
22,084
Posted By claw82
I can't cut the expression, i need the maximum...
I can't cut the expression, i need the maximum complexity in the expression, because the user can write fine the first part of the expression and bad the second part, and the expression mustn't...
22,084
Posted By claw82
Are you proved this code? I don't know why,...
Are you proved this code?

I don't know why, but in the POLITICS, my regexp doesn't work, the code don't show me the politics.

---------- Post updated at 12:34 PM ---------- Previous update was...
22,084
Posted By claw82
Ok, my output must be something like this: ...
Ok, my output must be something like this:

for CACHE_SIZE:
1000M

for CRONTAB:
1 12 2 10 5

for POLITICS:
100MF doc,docx,xls <5600K 02/04/02/02/02K
55MF jpg >300M ...
22,084
Posted By claw82
In the third part i think that you understood...
In the third part i think that you understood that i wanna do, but i think it's better for me to work with your seconds answer, because i only need to print or save in variables the values between...
22,084
Posted By claw82
Thanks but i need to use awk dennis, and i think...
Thanks but i need to use awk dennis, and i think that i can't use getline zaxxon, because i have a config file like this:


CACHE SIZE{
cache_size=1000M
}

CRONTAB{
crontab=1 12 2 10 5
}
...
22,084
Posted By claw82
Ok, thanks! I'll try to search information...
Ok, thanks!

I'll try to search information about getline works.
22,084
Posted By claw82
No, i don't want separate the processing of my...
No, i don't want separate the processing of my file in 2 diferents runs, i wanna run first a regexp, and this retunrs the values to me and then run the second regexp but continuosly not in 2...
22,084
Posted By claw82
Sorry, but i can use FS="\n" because my file have...
Sorry, but i can use FS="\n" because my file have 3 differents patterns, and i need to use FS="\t". My file is something like this:

123M xls <670K
234K doc >800K

CACHE_SIZE{...
Showing results 1 to 25 of 37

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