Search Results

Search: Posts Made By: wawa
1,228
Posted By wawa
Nawk if logic problem
do you always have to have the same amount? Is that what you mean by fix that?

---------- Post updated at 11:05 AM ---------- Previous update was at 11:04 AM ----------

nevermind how stupid
1,228
Posted By wawa
nawk '{ fmt="%3s %22s %48s %35s %21s\n"; ...
nawk '{ fmt="%3s %22s %48s %35s %21s\n";
if ($3==$6 && $1=="STOPLOSS") {
tpy="Successful Match";
jnme=$1;
sts="File will be...
1,228
Posted By wawa
Nawk if logic problem
nawk '{ fmt="%3s %22s %48s %35s %21s\n"; if ($3==$6 && $1=="STOPLOSS") { tpy="Successful Match"; jnme=$1; sts="File will be loaded"; cntrl=$3; audit=$6; printf (fmt, tpy,jnme,sts,cntrl,audit) >>...
1,276
Posted By wawa
so explain something to me. Where you have...
so explain something to me. Where you have "okay" is that the first output file? And where you have the "mismatch" is that the second file? and right after that is the input file?

----------...
1,276
Posted By wawa
yes output in two file is preferred, but could...
yes output in two file is preferred, but could work with one

---------- Post updated at 10:15 PM ---------- Previous update was at 10:13 PM ----------

sorry not sure how this Interface works. ...
1,276
Posted By wawa
Nawk coding trying to compare two fields in a file
I have a file. We can call file1. It has these contents.
STOPLOSS Control_file 0000000010.000 STOPLOSS Audit_file_Signoff +0000000010.00

nawk '{ fmt="%3s %15s %15s %15s...
Forum: AIX 07-09-2010
3,477
Posted By wawa
SUN TO AIX (UMASK)
I can't seem to get the umask command to work the same way in AIX that is worked in SUN. Can somebody tell me if I have to do something else.

I'm using a userid to login. In that userid's...
2,130
Posted By wawa
just got back from vacation. no takers on this...
just got back from vacation. no takers on this one.:(
2,130
Posted By wawa
Job tracking in logs
I have two log files from two different days and some jobs start on one day and finish on the next. I also have jobs that start and then don't finish until other jobs start and finish. I'm trying...
4,001
Posted By wawa
Thanks that worked. I wasn't thinking it was the...
Thanks that worked. I wasn't thinking it was the actual code that was flawed. I thought it was how I was defing the variables because danmero said it worked on his side. Anyway thanks to both of...
4,001
Posted By wawa
I think this is what you are looking for: ...
I think this is what you are looking for:


nawk '{u=$1;gsub(/:|\./,"",x);if(u>=x && $NF==y){f=1};if($NF==z){a=1};if(a && $NF!=z){exit}}f' x=200000000 y=U1KC000 z=U1KC902 log1 log2


log1:
...
4,001
Posted By wawa
I'm not sure what you mean by (use [code] tags). ...
I'm not sure what you mean by (use [code] tags). I attached two samples of the files.

What I need is everything starting with U1KC000 at 20:00 hours from log1. To U1KC902 from log2.

I...
4,001
Posted By wawa
I have to run it using nawk. does that make a...
I have to run it using nawk. does that make a difference. awk doesn't work for me. I put both my log files into the two last locations and I get nothing returned to my screen.

nawk...
4,001
Posted By wawa
I changed log1 and log2 to my log files and it...
I changed log1 and log2 to my log files and it runs without errors, but I get no output?
4,001
Posted By wawa
that is sweet it worked like a charm thanks ...
that is sweet it worked like a charm

thanks

---------- Post updated at 02:51 PM ---------- Previous update was at 01:17 PM ----------

well what I do have is two logs that I have to combine. ...
4,001
Posted By wawa
I see where you represent the infile, but where...
I see where you represent the infile, but where is the outfile. Do I just > to output
4,001
Posted By wawa
Date elimination
I have a file with the following data. I want to start writing lines out of this file to another file only after the time is greater than 20:00:00 hours and the first job is U1KC000. I would like...
3,328
Posted By wawa
Thanks that worked. I don't know who came up...
Thanks that worked. I don't know who came up with this idea of sharing the knowledge, but I love it.

Thanks big time

Hopefully sometime I can return the favor
3,328
Posted By wawa
still doesn't recognize the rd variable. doesn't...
still doesn't recognize the rd variable. doesn't read in the files within the double quotes.
3,328
Posted By wawa
I got it to work with nawk thanks, but for some...
I got it to work with nawk thanks, but for some reason when I replace the hardcoded file names with variables. It won't accept RUNDATE variable.

RUNDATE="2010_03_24";

nawk '{getline a <...
3,328
Posted By wawa
I just replaced your file names with my actual...
I just replaced your file names with my actual names and got some errors.

awk '{getline a < "scomp2p8_2010_03_01.txt";getline b < "scomp2p6_2010_03_01.txt";print $0,a,b}' OFS=";"...
3,328
Posted By wawa
I think I've misrepresented my input files. I...
I think I've misrepresented my input files. I have three files with data in them. I want to string the data in those files together on one line, so I tried a cat statement, but it just lists all...
3,328
Posted By wawa
not familiar with awk can you tell me what...
not familiar with awk

can you tell me what this is doing or how do I represent my files
3,328
Posted By wawa
Shell Scripting
I'm trying to write a unix script to handle this function
we are in the ksh env, but force bash in scripting
I have three files as input and need to concatenate them onto one line at a time

For...
Showing results 1 to 24 of 24

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