Search Results

Search: Posts Made By: right_coaster
2,124
Posted By right_coaster
Nevermind my last post
I did find additional white space in my file which I removed with tr -d ' '

Thanks again for the replies! I'm all set.
2,124
Posted By right_coaster
Not working on my actual files
Thanks for the replies, they worked for my small example in the post. I tested it on a couple of test files. However when I applied it to my actual files, nothing is returned from the awk command.
...
2,124
Posted By right_coaster
AWK to match and merge data from 2 files into 1.
Hello, hopefully this is an easy on for the AWK guru's out there. I'm having some trouble figuring out how to match+merge data in 2 files into 1 single report.

I've got my 2 files filtered and...
8,994
Posted By right_coaster
Using either of these methods, is it possible to...
Using either of these methods, is it possible to print a field from file2?

NOTE: I added printing $5 below to get the date from file1 and if at all possible I'd like to print the date ($3) from...
8,994
Posted By right_coaster
Awesome, works nicely... and I'll run it on my...
Awesome, works nicely... and I'll run it on my 12,000 line files and see how it goes. Thanks again.
8,994
Posted By right_coaster
AWK: Pattern match between 2 files, then compare a field in file1 as > or < field in file2
First, thanks for the help in previous posts... couldn't have gotten where I am now without it!

So here is what I have, I use AWK to match $1 and $2 as 1 string in file1 to $1 and $2 as 1 string...
6,394
Posted By right_coaster
yes i tested it and it seems to work perfect. ...
yes i tested it and it seems to work perfect. thanks!
6,394
Posted By right_coaster
AWK match $1 $2 pattern in file 1 to $1 $2 pattern in file2
Hi, I have 2 files that I have modified to basically match each other, however I want to determine what (if any) line in file 1 does not exist in file 2. I need to match column $1 and $2 as a single...
6,626
Posted By right_coaster
Wow, maybe I need to turn on my brain... it's...
Wow, maybe I need to turn on my brain... it's always the obvious that eludes me! Thank you.
6,626
Posted By right_coaster
ksh compare dates INSIDE a file (ie date A is > date B)
In KSH, I am pasting 2 almost identical files together and each one has a date and time on each line. I need to determine if the first instance of the date/time is greater than the 2nd instance of...
4,961
Posted By right_coaster
Awesome! worked perfect, thanks so much.
Awesome! worked perfect, thanks so much.
4,961
Posted By right_coaster
Need an awk / sed / or perl one-liner to remove last 4 characters with non-unique pattern.
Hi, I'm writing a ksh script and trying to use an awk / sed / or perl one-liner to remove the last 4 characters of a line in a file if it begins with a period.

Here is the contents of the file......
1,232
Posted By right_coaster
How to remove a semi-repeating character in position 1 of a file
My file is in a good column format but several lines in the file begin with a zero. I'm in KSH and looking for a command to remove this zero and keep the text next to it. I don't want any of the...
11,750
Posted By right_coaster
Thanks but like I said I have mix of files that...
Thanks but like I said I have mix of files that are writable and some that are not. For the ones that are currently writable I don't want to remove the write bit.
How can I update a many files of...
11,750
Posted By right_coaster
ksh; Change file permissions, update file, change permissions back?
Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions...
1,189
Posted By right_coaster
KSH - How to use a file as input to an IF or AWK statement
Hi,

I have a ksh script where I have an awk statement to exclude a few items... but my "few items" has now grown substantially and I'm looking for a nice compact way of doing this. Maybe putting...
3,408
Posted By right_coaster
I just tested the 'nawk' statement and it worked...
I just tested the 'nawk' statement and it worked perfectly... thank you so much for the responses!

Cheers
3,408
Posted By right_coaster
KSH: Compare variable to $1 in an input file
Hello,

I am working with KSH on AIX and I have 2 files generated from different sources... as seen below:

FILE1 FILE2
AAA AAA@ABS0001C
BBB BBB@ABS0003D
CCC CCC@ABS0023A
DDD DDD@ABC0145D...
Showing results 1 to 18 of 18

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