LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2012, 03:49 AM   #1
yun1st
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
Aboout "with very long lines",how long is very long?


E.X:
file somefile.x

output is [...ASCII text, with very long lines]

I want to know how many bytes per line is very long line.
Is the number depend on the different computer or system setting ?
or all the linux have a same define to "very long line".

ps:sorry about my english. I hope you can understand it.
 
Old 07-20-2012, 05:12 AM   #2
hal8000b
Member
 
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 184

Rep: Reputation: 22
Quote:
Originally Posted by yun1st View Post
E.X:
file somefile.x

output is [...ASCII text, with very long lines]

I want to know how many bytes per line is very long line.
Is the number depend on the different computer or system setting ?
or all the linux have a same define to "very long line".

ps:sorry about my english. I hope you can understand it.

A long line is defined by the number of characters on the display device. If you have a monitor that can display 80 characters per line, then a line longer than 80 characters will scroll to the next line below. Very long lines can be difficult to read.
Imagine how it would look if viewed on a phone or other smaller resolution display device.

There is no limit to the number of charcaters in an ASCII file, the file can be as large as you want, limited by the
space on your hard drive.

The number of bytes per line depends on the length of your line, so a single ASCII character like "A" is one byte,
however when stored as a file may occupy slightly more space depending on the filesystem and number of inodes, hope that helps.
 
1 members found this post helpful.
Old 07-20-2012, 06:02 AM   #3
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
If you have on mind exactly command "file" than you can look into source of this program, and for example in Ubuntu, you see in file "ascmagic.c" that this is defined as 300 bytes. But it depends who compiled that file as everybody / organization can change it.
 
2 members found this post helpful.
Old 07-20-2012, 06:08 AM   #4
yun1st
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
I got it ,THANKS.
 
Old 07-20-2012, 04:38 PM   #5
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,652

Rep: Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569
BTW:

If you see that "very long lines" bit you might suspect that the file is not really ascii text, or is but in a special format.
I run into data files daily that are reported that way. (ISAM, DBC txt files)

Take that report with a grain of salt. It is sometimes exactly correct.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: This week at LWN: Long discussions about long names LXer Syndicated Linux News 0 05-19-2009 11:50 PM
Long lines "eats" up rows above in screen Nemie Linux - Server 3 01-09-2009 09:38 AM
How to convert "unsigned long long" to "char pointer"? novicehacker Linux - Kernel 1 11-20-2006 01:57 AM
LONG LONG "lost" /home directory post Mark_in_Hollywood Linux - Newbie 5 09-20-2006 12:47 AM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-07-2005 12:44 AM


All times are GMT -5. The time now is 02:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration