Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: Fixed length records containing 2 different records types with

Rookie Card wrote:
> William -
> The files don't have leading spaces but do have spaces in the middle
> Like this:
>
> 200409113  834736A90028
> CLIENTID 00VNI112B92658
> CLIE  ID000VNI118S98271
> 200411   34129983A93065
>
> The spaces are never consistant as they represent a fixed lenth field
> and the data is not always the same legnth. Although the posistion of
> the records identifier ( A ) is always the same if you count the
> spaces. (Fixed length records with fixed field widths)
> I also tried awk '/A/' REC18.txt
> the output returned all records.

That's impossible given the input file you showed above.

Ed.

Report this thread to moderator Post Follow-up to this message
Old Post
Ed Morton
01-06-05 08:57 PM


Re: Fixed length records containing 2 different records types with
In article <crjpdc$it6@netnews.proxy.lucent.com>,
Ed Morton  <morton@lsupcaemnt.com> wrote:
... 
>
>That's impossible given the input file you showed above.
>
>	Ed.

There is some kind of fundamental miscommunication going on in this thread.

For one, it is clear that the OP hasn't a clue about how AWK works.
He should acquire and read thoroughly some basic texts.

Second, I think there may be some kind of shell-quoting issue going on --
which is a nice way of saying, "I think he is using MS DOS w/o telling us
and we are, quite naturally, assuming Unix."


Report this thread to moderator Post Follow-up to this message
Old Post
Kenny McCormack
01-06-05 08:57 PM


Re: Fixed length records containing 2 different records types with

Rookie Card wrote:
> William,
> That worked!
> I used the Kernighan version of awk for win32.
> awk "\"A\"==substr($0,18,1)" REC18.txt >RECA.txt
> The problem was gnu version 3.1.3 of gawk.exe
>

Given your other postings where you didn't use the above syntax, I doubt
if gawk was really the problem. Try it again using exactly the syntax above.

Ed.

Report this thread to moderator Post Follow-up to this message
Old Post
Ed Morton
01-07-05 01:56 AM


Re: Fixed length records containing 2 different records types with
In article <crjpdc$it6@netnews.proxy.lucent.com>,
Ed Morton  <morton@lsupcaemnt.com> wrote:
... 
>
>That's impossible given the input file you showed above.
>
>	Ed.

There is some kind of fundamental miscommunication going on in this thread.

For one, it is clear that the OP hasn't a clue about how AWK works.
He should acquire and read thoroughly some basic texts.

Second, I think there may be some kind of shell-quoting issue going on --
which is a nice way of saying, "I think he is using MS DOS w/o telling us
and we are, quite naturally, assuming Unix."


Report this thread to moderator Post Follow-up to this message
Old Post
Kenny McCormack
01-11-05 01:55 PM


Re: Fixed length records containing 2 different records types with

Rookie Card wrote:
> William,
> That worked!
> I used the Kernighan version of awk for win32.
> awk "\"A\"==substr($0,18,1)" REC18.txt >RECA.txt
> The problem was gnu version 3.1.3 of gawk.exe
>

Given your other postings where you didn't use the above syntax, I doubt
if gawk was really the problem. Try it again using exactly the syntax above.

Ed.

Report this thread to moderator Post Follow-up to this message
Old Post
Ed Morton
01-11-05 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

AWK archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:41 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.