How to find record length of a file in unix
Close this window and log in. Join Us Close. Join Tek-Tips Forums! Join Us! By joining you are opting in to receive e-mail. Promoting, selling, recruiting, coursework and thesis posting is forbidden. Today's Posts. Quick Links. Search Forums. Show Threads. Show Posts. What the command to find out the record length of a fixed length file? Registered User. Join Date: Oct I want to find out the record length of a fixed length file? I forgot the command.
Any body know? Join Date: Jan Code :. Last edited by radoulov; at PM.. Reason: IFS for shell version adjusted. Thank you. Originally Posted by tranq Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more.
Check record length for fixed width files Ask Question. Asked 4 years, 8 months ago. Active 4 years, 8 months ago. Viewed 5k times. Jon Jon 1, 1 1 gold badge 20 20 silver badges 28 28 bronze badges. You could do something with just awk without sorting and piping and all that: awk -F, 'NF!
However the file on disk would be the same size as it started out; it just ignored everything after the first Ctrl-Z it found. But dBase did not use end of record markers i. I don't see any reference to VB any version in the article.
They are a feature of C and it's descendants. Most other languages store strings with a size field then the chars. It seems that my problem never was one of fixed-length records, but rather was one of unexpected and un-allowed-for ASCII characters. I now see that I can resume my development using StreamReader processing. I consider my problems so I will mark Crazypennie's reply as Answer so as to close this thread. But thank you all for the additional insights!
Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Visual Basic. Not for VB6 questions. Sign in to vote. Price Buhrman. Wednesday, October 31, PM. Friday, November 2, PM. Without being able to identify either I don't see how this process can be dynamic.
0コメント