Search Results

Search: Posts Made By: jvoot
2,698
Posted By jvoot
Thanks so much RavinderSingh13. An early quick...
Thanks so much RavinderSingh13. An early quick test seems to reveal that that did the trick!
2,698
Posted By jvoot
awk for matching fields between files with repeated records
Hello all, I am having trouble with what should be an easy task, but seem to be missing something fundamental. I have two files, with File 1 consisting of a single field of many thousands of records....
2,719
Posted By jvoot
OK, thank you so much. I was under the impression...
OK, thank you so much. I was under the impression that the field separator value was set to the *string* "][" rather than "]" or "[", thus I thought that $1 in the code would have been PS028,006 [KJ...
2,719
Posted By jvoot
That did it RubiC! Such a simple and elegant way...
That did it RubiC! Such a simple and elegant way to accomplish it! Thanks so much also to Scrutinizer and Don Cragun for your help!

If I may, could I please ask a question about the field...
2,719
Posted By jvoot
I'm so sorry Scrutinizer, but as my input is many...
I'm so sorry Scrutinizer, but as my input is many thousand lines long I did not notice a potential complicating issue that I was wondering if I could get your help addressing. There are time where...
2,719
Posted By jvoot
Thanks so much Scrutinizer. It looked like it was...
Thanks so much Scrutinizer. It looked like it was printing out some manner of counter (possibly string length?) as the first field of every line. I adjusted your code slightly and also for simplicity...
2,719
Posted By jvoot
Deleted.
Deleted.
2,719
Posted By jvoot
awk Associative Array and/or Referring to Field by String (Nonconstant String Value)
I will start with an example of what I'm trying to do and then describe how I am approaching the issue.

File
PS028,005 [JHRS-<Pr>] [ABC <Ob>]
Lexeme HRS # M #
PhraseType ...
1,677
Posted By jvoot
I apologize for the misleading information Don. I...
I apologize for the misleading information Don. I have been trying to delete that last update that I had put up because I saw the error. I unfortunately do not see the ability to delete a reply and...
1,677
Posted By jvoot
Scrutinizer! That did it (or at least seems to...
Scrutinizer! That did it (or at least seems to have done it)! Your solution was so much more simple than that which I was attempting. Thank you so very much!
1,677
Posted By jvoot
Reply deleted.
Reply deleted.
1,677
Posted By jvoot
Thank you so much Don. I'll take a look. ---...
Thank you so much Don. I'll take a look.

--- Post updated 01-22-19 at 07:06 AM ---

I read through that thread Don and while I must admit that I do not exactly follow all of it, it seems to be a...
1,677
Posted By jvoot
Awk: Performing "for" loop within text block with two files
I am hoping to pull multiple strings from one file and use them to search within a block of text within another file.

File 1PS001,001 HLK
PS002,004 MWQ
PS004,002 RXM
PS004,006 DBX
PS004,006...
845
Posted By jvoot
Such an elegant solution Scrutinizer. I had no...
Such an elegant solution Scrutinizer. I had no idea grep would recognize metacharacters as a part of stdin. Thank you so very much.
845
Posted By jvoot
Grep: Retrieve two strings from one file to find them anywhere on line in another file
I am having trouble matching *two* strings from one file anywhere in a line of a second file, and could use some help getting this figured out. My preference would be to use grep for this because I...
1,777
Posted By jvoot
Thanks so much for this RudiC. I tested it just...
Thanks so much for this RudiC. I tested it just quickly without an in-depth check, but it seems to have done the trick. I am sorry for the extra work my mistake created for you and I so very much...
1,777
Posted By jvoot
Thanks so much for this RudiC. I don't want to...
Thanks so much for this RudiC. I don't want to wear out your patience, but it seems that when I took samples from file 2, I took too many "*" lines and effectively made two consecutive lines...
1,777
Posted By jvoot
Actually RudiC, now that I read your paraphrase a...
Actually RudiC, now that I read your paraphrase a bit more closely, it is slight off:


Everything was correct up until your "AND" statement. The value "503" can be in $22 in any line within the...
1,777
Posted By jvoot
(g)awk: Matching strings from one file in another file between two strings
Hello all, I can get close to what I am looking for but cannot seem to hit it exactly and was wondering if I could get your help.

I have the following sample from textfile with many thousands of...
1,447
Posted By jvoot
In this case @MadeInGermany, I would not want any...
In this case @MadeInGermany, I would not want any output to be generated given your proposed input file.

Maybe it would be helpful if I gave some more sample data from my input.

InputSample
...
1,447
Posted By jvoot
Thank you so much vgersh99. Indeed, in the verbal...
Thank you so much vgersh99. Indeed, in the verbal parameters of my desired output I left out one condition (viz., $16=="2"). I have since fixed my original post. Thanks for pointing that out to me...
1,447
Posted By jvoot
find pattern matches in consecutive lines in certain fields-awk
I have a text file with many thousands of lines, a small sample of which looks like this:

InputFile:PS002,003 D -1 5 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 6 6 -1 -1 ...
865
Posted By jvoot
Works like a charm RudiC! Thank you so much! Now...
Works like a charm RudiC! Thank you so much! Now I have to go try to figure out how it works.
865
Posted By jvoot
Match pattern only between certain lines in entire file
Hello, I have input that looks like this:
* 0 -1 103 0 0 m. 7 LineNr 23 ClauseNr 1: 1: 1: 304: 0 0 SentenceNr 13 TxtType: Q Pargr: 2.1 ClType:MSyn
PS004,006 ZBX= 0 1 1 ...
1,053
Posted By jvoot
Thanks Don. Unfortunately I noticed those...
Thanks Don. Unfortunately I noticed those suggested threads after I had responded to Scrutinizer. I really appreciate your own explanation here too as I continue to approach awk from a discipline far...
Showing results 1 to 25 of 55

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