Line Longer Than 2048 Charcters


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Line Longer Than 2048 Charcters
# 1  
Old 09-25-2006
Line Longer Than 2048 Charcters

I have a csv file with a record size of greater than 2048.So when i try to open the file in VI..This is the error i get (test.csv" A line cannot be longer than 2048 characters)
Is there a way i can change this parameter to read a bigger line
# 2  
Old 09-25-2006
fold -s file >wrapped_file
vi wrapped_file

I'm not sure if "-s" is portable; you might have to omit it.
# 3  
Old 09-28-2006
You could try one of the vi clones, e.g. elvis (see http://sourceforge.net/projects/elvis-dl for docs and downloads), vim, vile or nvi. They're all similar to vi and have extra features, like allowing impossibly log line lengths, binary file editing, multiple undo, enhanced searching, multiple windows etc. The only disadvantage is that they all differ from standard vi and standard vi is the one you find everywhere!

cheers
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

DH key size must be multiple of 64, and can only range from 512 to 2048 (inclusive).

Hello, I have a set-up in which I am executing a build from Jenkins on a Solaris 10 Server connecting via sshexec task in ANT. On triggering the build, it is throwing below error: com.jcraft.jsch.JSchException: Session.connect: java.security.InvalidAlgorithmParameterException: DH key size... (2 Replies)
Discussion started by: nishant.kansal@
2 Replies

2. Homework & Coursework Questions

Meta charcters

find out lines in a given file consisting of the following pattern BCAA, BCAAA, BCAAAA, BCAAAAA, BCAAAAAA (1 Reply)
Discussion started by: Phaneendra G
1 Replies

3. UNIX for Dummies Questions & Answers

Meta charcters

Find out lines in a given file consisting of the following pattern BCAA, BCAAA, BCAAAA, BCAAAAA, BCAAAAAA (0 Replies)
Discussion started by: Phaneendra G
0 Replies

4. Shell Programming and Scripting

awk: Input line Cannot be longer than 3,000 bytes.

Guys, I want to get the high CPU utilization from top. I am using below code : top -d2 >> /home/dba_monitoring/host_top_output.txt echo "Script started `date`" > $runlog usage=`grep "^ *$1" /home/dba_monitoring/host_top_output.txt | awk '{print $12}' | sed 's/%//'` And getting below... (7 Replies)
Discussion started by: wahab
7 Replies

5. UNIX for Advanced & Expert Users

Substitution when special charcters involved

I am trying to substitute a substring in a file and am having difficulty due to the presence of 'special characters' I tried sed -e "s/Bob's birthday 13/11/08 (today)/Bob's birthday 14/11/08 (tomorrow)/" file1 This does not action any change due to the square brackets. How can I cater... (5 Replies)
Discussion started by: SAMZ
5 Replies

6. Shell Programming and Scripting

cat in linux, file holding special charcters

Hi I'd like to cat, in linux, a file that holds special charcters, like "-->" and ">" and "]" For example I have a file named test123.txt it looks like this: 2008-09-11 00:27:01,496 - < 0 > --> Start calculation of pattern , Pattern was split to pattern graphs < 0 > System Tqls Optimizer... (5 Replies)
Discussion started by: liav
5 Replies

7. Forum Support Area for Unregistered Users & Account Problems

Can no longer login.

I registered last week, received the emails and activated my account. It worked splendidly. Today, I logged in, performed a search, then was prompted to login each time I moved to the next page in the search results. I requested and received a new password but UNIX.com thanks me for logging... (0 Replies)
Discussion started by: thebigm
0 Replies

8. UNIX for Advanced & Expert Users

remove charcters

How do i remove single quotes(') from a file. Can we use sed for it (2 Replies)
Discussion started by: kris01752
2 Replies

9. Solaris

Handling Special Charcters

Dear All, I have created a UTF-8 database to store multi-lingual charcters. Below is the query from which i insert from Winsql (front-end third party database browser tool), the data gets inserted properly. insert into a (no, lbl) values (1, "Cliquez ici pour revenir Ã_ la recherche de... (2 Replies)
Discussion started by: lloydnwo
2 Replies

10. UNIX for Dummies Questions & Answers

2048 files/directory in Unix Sco ?

I found my directories to be filled with 2048 files. The number of files per directory is not exceeding this number. Is this the default and what should i do to increase it? Regards (3 Replies)
Discussion started by: BAM
3 Replies
Login or Register to Ask a Question