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??
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...
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
Summary: Hi, I got a script that execute a command like this : et -A array_name `ps -ef | grep -i $process_name | grep -v 'grep' | grep -v 'kill' |grep -v $0| sort|awk '{print $2}' | sort -u` this is bloody lo...
Summary: Hi all, I have an input file containing one line of record. Apparently, the line is too long, and when I try to replace a string using sed, I got message, "Output line too long" and the output file s...
Summary: I have bootdisk for SCO rel.5.4, I need information : " How to edit bootdisk system to change the configuration setup ? Please sent me to my e-mail ...