LinuxQuestions.org
Visit Jeremy's Blog.
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, 02: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, 04:12 AM   #2
hal8000b
Member
 
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 194

Rep: Reputation: 23
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, 05:02 AM   #3
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,279

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
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, 05:08 AM   #4
yun1st
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
I got it ,THANKS.
 
Old 07-20-2012, 03:38 PM   #5
wpeckham
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,484

Rep: Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649
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 10:50 PM
Long lines "eats" up rows above in screen Nemie Linux - Server 3 01-09-2009 08:38 AM
How to convert "unsigned long long" to "char pointer"? novicehacker Linux - Kernel 1 11-20-2006 12:57 AM
LONG LONG "lost" /home directory post Mark_in_Hollywood Linux - Newbie 5 09-19-2006 11:47 PM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-06-2005 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:48 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
Open Source Consulting | Domain Registration