Editor for working with large files


 
Thread Tools Search this Thread
Operating Systems Solaris Editor for working with large files
# 8  
Old 02-12-2014
I in such cases ask the users to copy the file on their PC and get a ultraedit license...
(worked so far hehe)
# 9  
Old 02-12-2014
Perhaps you need to split up the file into chunks that vi can manage then. If they need to edit it, then concatenate the pieces back together again when they are done. You could do something like this:-
Code:
mkdir /tmp/$$
split -dl 10000 source_file /tmp/$$/
vi /tmp/$$/*
cat /tmp/$$/* > source_file
rm -r /tmp/$$

It's pretty crude and you would need a temporary directory with sufficient space, I admit, but it might help.

If they are non-IT, then perhaps the vi editor is not for them though. Would you consider a Samba share that they can map from a PC and therefore use an editor of their choice? The only worry then is if someone chooses to save in a document format rather than plain text.



Robin
# 10  
Old 02-12-2014
Quote:
Originally Posted by maverick_here
I would say a paid option is also good in this case.This is needed by people who are NON-IT so it would be good if we had an editor rather than sed/awk script.Any suggestions on a non free editor ( for Sparc solaris)
I doubt there is a market for a commercial text editor able to edit +1GB text files while there are undoubtedly freewares able to do it.
What kind of text files are these ?
What kind of editing commands are expected ?
# 11  
Old 03-06-2014
what you want is pico or nano.

vi is for masochists.
# 12  
Old 03-06-2014
Code:
vim -n file

does not use a swap file.
These 2 Users Gave Thanks to MadeInGermany For This Post:
# 13  
Old 03-07-2014
I'm for vi then. You have to be a masochist to like working here.....
# 14  
Old 03-07-2014
Quote:
Originally Posted by MadeInGermany
Code:
vim -n file

does not use a swap file.
"vim" is generally not installed on Solaris 10, only a standard conforming "vi" with no "-n" option.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Vi editor not working

Hi All, When i try to use vi editor to view content of a file i get error "Terminal too wide" I try to use the following stty command though i dont know the purpose of it ( as it was said in some oracle forum ) but still the same error returns. "stty columns 120" Could you explain... (5 Replies)
Discussion started by: Maddy123
5 Replies

2. Shell Programming and Scripting

sed and awk not working on a large record file

Hi All, I have a very large single record file. abc;date||bcd;efg|......... pqr;stu||record_count;date when i do wc -l on this file it gives me "0" records, coz of missing line feed. my problem is there is an extra pipe that is coming at the end of this record like... (6 Replies)
Discussion started by: Gurkamal83
6 Replies

3. Shell Programming and Scripting

copying the files in vi editor

Hi, For a particular file i used Vi editor to view the content and i have to copy the same , But in the files if have 1000 lines and i have to copy the file contents from 700th to 900th lines But while copying i'm dragging the mouse from top to bottom but i supposed to copy the lines... (8 Replies)
Discussion started by: thelakbe
8 Replies

4. Programming

Working with extremely large numbers in C

Hi All, I am just curious, not programming anything of my own. I know there are libraries like gmp which does all such things. But I really need to know HOW they do all such things i.e. working with extremely large unimaginable numbers which are beyond the integer limit. They can do add,... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

5. Solaris

How to safely copy full filesystems with large files (10Gb files)

Hello everyone. Need some help copying a filesystem. The situation is this: I have an oracle DB mounted on /u01 and need to copy it to /u02. /u01 is 500 Gb and /u02 is 300 Gb. The size used on /u01 is 187 Gb. This is running on solaris 9 and both filesystems are UFS. I have tried to do it using:... (14 Replies)
Discussion started by: dragonov7
14 Replies

6. Shell Programming and Scripting

Divide large data files into smaller files

Hello everyone! I have 2 types of files in the following format: 1) *.fa >1234 ...some text... >2345 ...some text... >3456 ...some text... . . . . 2) *.info >1234 (7 Replies)
Discussion started by: ad23
7 Replies

7. UNIX for Dummies Questions & Answers

working with vi editor

Hi there, I am unable to find solution to the following question. 1) How do you copy 10 lines starting from the current and paste at the end of file? 2) How do you delete five lines starting from the current and four lines above? 3) What is the command to remove all space... (1 Reply)
Discussion started by: grc
1 Replies

8. UNIX for Dummies Questions & Answers

Files search in vi editor

Hi All, Apologise if I am in the wrong forum, I am trying to view all files one by one in the vi editor that contain a pattern. This command work but not sure where to pipe it to use vi editor find . -name "pattern" -print | xargs -ltr tnx in advance (1 Reply)
Discussion started by: lingosa
1 Replies

9. UNIX for Advanced & Expert Users

Planning on writing a Guide to Working with Large Datasets

In a recent research experiment I was handling, I faced this task of managing huge amounts of data to the order of Terabytes and with the help of many people here, I managed to learn quite a lot of things in the whole process. I am sure that many people will keep facing these situations quite often... (2 Replies)
Discussion started by: Legend986
2 Replies

10. UNIX for Dummies Questions & Answers

Sed working on lines of small length and not large length

Hi , I have a peculiar case, where my sed command is working on a file which contains lines of small length. sed "s/XYZ:1/XYZ:3/g" abc.txt > xyz.txt when abc.txt contains lines of small length(currently around 80 chars) , this sed command is working fine. when abc.txt contains lines of... (3 Replies)
Discussion started by: thanuman
3 Replies
Login or Register to Ask a Question