Search Results

Search: Posts Made By: Da_Duck
11,790
Posted By Da_Duck
nice! You DA MAN. This is perfect. Thanks very...
nice! You DA MAN. This is perfect.
Thanks very much.


> sed -n -f sed_spt /export/home/oracle/dba/spcchk.lis
09/25/06 SPCCHK - Tablespace Percent Total Free Values on BAT
...
11,790
Posted By Da_Duck
that second script is not working. For some...
that second script is not working. For some reason it is converting the "!" to something weird.

graham_ccst> sed -n "/Tablespace Percent Total Free/,/Tablespace Free Space Avg Fragmentation/ \
>...
11,790
Posted By Da_Duck
I just tested this. very nice! there is only...
I just tested this. very nice!
there is only one extra line that I don't need, but it is not a big deal.


sed -n "/Tablespace Percent Total Free/,/Tablespace Free Space Avg Fragmentation/ p"...
11,790
Posted By Da_Duck
thanks for the quick responses. Also, what...
thanks for the quick responses.

Also, what if there is more than one block (same rules) within the same filename that I need to extract?
So there would be 2-3 sets of markers possibly.
11,790
Posted By Da_Duck
find 2 line numbers, grab text in between
hi, i have a large text file that I just want to extract the important
information from. It will be a random number of lines but between two specific
line numbers/markers.

I was thinking I...
6,601
Posted By Da_Duck
for record 1: you have a partitioned table by...
for record 1:
you have a partitioned table by date. You are attempting to load a date-value into the table that is higher than your highest dated-partition.

example:
My table partitions highest...
37,668
Posted By Da_Duck
answered my own question: awk -v f1=`date...
answered my own question:

awk -v f1=`date +'%d04'` '$1~f1 {getline; print $0}' test.txt



thanks for all the patience and help!
37,668
Posted By Da_Duck
Ygor: 3 Perderabo: 1 Duck: -5 Ygor...
Ygor: 3
Perderabo: 1
Duck: -5

Ygor wins! Both lines work very well.
I swear I tried almost everything.

Why did I think $1==f1 should be in parens? ($1==f1)
I think I read that somewhere...
37,668
Posted By Da_Duck
I get no result this way. > awk -v f1=`date...
I get no result this way.

> awk -v f1=`date +'%d0454'` '/^f1/ {getline; print $0}' test.txt
*DEV1-/home/oracle
>


the only way so far that I could figure out how to do it was
to echo the...
37,668
Posted By Da_Duck
why isn't this working? somehow I cannot set...
why isn't this working?
somehow I cannot set the variable correctly.

My objective is to add the day of the month to 0454
and then search on that.

so I have:

> echo "`date +'%d0454'`"...
37,668
Posted By Da_Duck
Works perfect. Thank you.
Works perfect.
Thank you.
37,668
Posted By Da_Duck
, that just made me realize that it just won't...
, that just made me realize that it just won't work with
that feed.

HOWEVER, I do have another feed that it will work on.

Is there any way to search for a row and when found, take the
row...
37,668
Posted By Da_Duck
wow. thanks! That did it.
wow. thanks!
That did it.
37,668
Posted By Da_Duck
This is what I am asking. Due to the variable...
This is what I am asking.
Due to the variable column number in each row
I am having trouble figuring out how to do this.

Basically I want the highest number from one column
and the lowest from...
37,668
Posted By Da_Duck
I can do that. What if I delimit with a pipe? ...
I can do that.
What if I delimit with a pipe?
Does that help?

lynx -dump "http://www.crh.noaa.gov/data/obhistory/KALB.html" | grep "24 " | awk {'print $1 "|" $2 "|" $3 "|" $4 "|" $5 "|" $6 "|"...
37,668
Posted By Da_Duck
Print last 4 columns (variable column #)
I have rows of data with variable number of columns.

Is there an easy way to print out the last 4 columns
or rather the 4th and 3rd last column?

data looks like this:

24 20:51 N...
Showing results 1 to 16 of 16

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