Length


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 2 Weeks Ago
Length

friends how can i know the length of a record of a file with a shell

Moderator's Comments:
Mod Comment Please DO NOT do double posting of same contents. Update your questions only for adding/editing details not for adding same king of information again.

Last edited by RavinderSingh13; 2 Weeks Ago at 01:25 PM..
# 2  
Old 2 Weeks Ago
Depends what 'record' means. You have to know what your data is before you can deal with it.
This User Gave Thanks to Corona688 For This Post:
tricampeon81 (2 Weeks Ago)
# 3  
Old 2 Weeks Ago
one of the most progressive inventions by our genius Ken Thompson was, that *NIX regards files as simple byte streams, whereas fixed sized records are a anachronistic relic of mainframes. *NIX "records" always are delimited by a special character.
# 4  
Old 2 Weeks Ago
Quote:
...fixed sized records are a anachronistic relic of mainframes. *NIX "records" always are delimited by a special character.
They are not, actually. You can have whatever kind of file you want in UNIX! Binary, ASCII, variable sized records, fixed sized records, delimited or not. If you can imagine it, you can probably make it work.

Which is why you have to know what your data is before you can deal with it.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Convert variable length record to fixed length Anthuvan Shell Programming and Scripting 7 05-04-2017 01:15 AM
Check for length which exceeds specified length in a line rashmisb Shell Programming and Scripting 9 11-27-2012 01:26 AM
Sorting by length khoremand Shell Programming and Scripting 8 11-01-2012 12:27 PM
Record length NareshN Shell Programming and Scripting 6 10-18-2012 10:16 AM
Array Length Reports as Having Length when it is Empty? mrm5102 Shell Programming and Scripting 17 09-20-2012 02:41 PM
Flat file-make field length equal to header length sonali.s.more Shell Programming and Scripting 5 03-28-2012 08:39 AM
changing a variable length text to a fixed length dc18 Shell Programming and Scripting 7 08-03-2010 08:05 AM
Make variable length record a fixed length jclanc8 Shell Programming and Scripting 3 10-03-2009 08:24 PM
length for a value Gopal_Engg Shell Programming and Scripting 3 08-10-2009 03:32 AM
Convert a tab delimited/variable length file to fixed length file Everton_Silveir UNIX for Dummies Questions & Answers 2 12-19-2008 05:21 PM
What the command to find out the record length of a fixed length file? tranq01 UNIX for Dummies Questions & Answers 9 12-04-2008 03:04 PM
Length of a Unix filepath max length wilsontan UNIX for Dummies Questions & Answers 3 02-22-2006 09:19 AM
Sed working on lines of small length and not large length thanuman UNIX for Dummies Questions & Answers 3 04-15-2005 06:12 AM
creating a fixed length output from a variable length input r1500 Shell Programming and Scripting 2 12-03-2003 12:09 PM