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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-20-2012, 02:49 AM
|
#1
|
LQ Newbie
Registered: Jul 2012
Posts: 2
Rep:
|
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.
|
|
|
07-20-2012, 04:12 AM
|
#2
|
Member
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 194
Rep:
|
Quote:
Originally Posted by yun1st
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.
|
07-20-2012, 05:02 AM
|
#3
|
Senior Member
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281
|
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.
|
07-20-2012, 05:08 AM
|
#4
|
LQ Newbie
Registered: Jul 2012
Posts: 2
Original Poster
Rep:
|
I got it ,THANKS.
|
|
|
07-20-2012, 03:38 PM
|
#5
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,909
|
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.
|
|
|
All times are GMT -5. The time now is 11:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|