can't see all 20,160 lines in a file when 'cat filename'
DebianThis forum is for the discussion of Debian Linux.
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.
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.
can't see all 20,160 lines in a file when 'cat filename'
So I have a file on a remote server that I am sshing to and it contains exactly 20160 lines -- I know because I did 'wc -l file' -- but when I try to view all the lines by using the cat or vi command, it only displays around 500 lines and then stops. Would this have to do with limitations of the cat command or anything like that?
It might just be that this particular remote server doesnt have much memory or something (it is a VERY OLD box), but I'm not sure if that matters in this case.
What estabroo is saying, is that you should look at the contents of the file, around the last line that is displayed. it probably contains a special character that is turning off the cat request to print to the screen.
Make a copy of the file, and find the last line that cat produces. Remove the following line and retry, this will tell you if there was a special character, as it should then proceed past the point that it previously failed.
What estabroo is saying, is that you should look at the contents of the file, around the last line that is displayed. it probably contains a special character that is turning off the cat request to print to the screen.
Make a copy of the file, and find the last line that cat produces. Remove the following line and retry, this will tell you if there was a special character, as it should then proceed past the point that it previously failed.
Nah, the file is numbers and file names. Theres nothing that should stop it..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.