Computing.Net > Forums > Unix > line too long - how to edit this??

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

line too long - how to edit this??

Reply to Message Icon

Name: hernandez
Date: December 4, 2003 at 03:18:54 Pacific
OS: xp / korn shell
CPU/Ram: 196
Comment:

Hi,

I have some datasets that are coming up as being 'line too long' when I try to vi or edit them.
I can cat/more them no problem.

Does anyone know how I could edit them in unix?? I'm thinking I may have to write my own editor but am not sure I can...

thanks




Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: December 4, 2003 at 05:53:20 Pacific
Reply:

vi has been reworked many times. Perhaps one of the vi variant would be better like vim, elvis or the like. Also you could you awk to count line lengths and wrap the file to manageable lines if that would help.


0

Response Number 2
Name: hernandez
Date: December 4, 2003 at 06:32:12 Pacific
Reply:

thanks - can't put vim or elvis on here cause of priveledges i think.

i'll give this awk method a try thanks. if i get this sorted then i can use the tr -d you suggested to group it all back together

ta


0

Response Number 3
Name: hernandez
Date: December 4, 2003 at 07:22:26 Pacific
Reply:

actually how would you do that with awk ?
i've tried using parameters in awk without success

ie. awk '{print $field}'
where field is say 1 ??


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


revome file named ---- removing new lines from a...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: line too long - how to edit this??

line too long in a script www.computing.net/answers/unix/line-too-long-in-a-script/4015.html

Output line too long www.computing.net/answers/unix/output-line-too-long/5623.html

How to edit bootdisk www.computing.net/answers/unix/how-to-edit-bootdisk/3464.html