06-02-2016
Editing long text file
Good morning all, I have a machine running IRIX and I need to edit a text file on the terminal that is literally thousands of lines. Does anyone know the most efficient way to edit portions of files like these? Obviously simply using the vi command isn't going to work since I get a too many lines error. Thanks a lot, James
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello everybody,
I have a sorted text file. some of the lines appear twice or even more. is there an unix utility that removes the extra appearences?
Thanks,
Ido. (7 Replies)
Discussion started by: ginodii
7 Replies
2. Shell Programming and Scripting
I was wondering if there was a way to modify a tab delimited text file, up to 185,000 lines long by adding a repeated field to a block of 20 data , then repeat the process until the file is processed.
The current file looks like: ... (3 Replies)
Discussion started by: saint65
3 Replies
3. Shell Programming and Scripting
Hi, I need some help in text manipulation.
I have an input file like this:
7629 "WPCW 19 - CW/AM1, WPCB 40 - FAMN/CORNER, WPCB-DT1 50 - FAMN/CORNER, "
W35AW - Various Shopping Pgms
W41CF - TBN
W47CV - TBN
WLLS-LP 49 - AM1
WATCH WPXI 11 N & WPIX 11 CW
1234 "WPCW 19 - CW/AM1,... (26 Replies)
Discussion started by: injeti
26 Replies
4. Shell Programming and Scripting
Hi all,
I'm new in unix scripting and I've a problem with a script... :confused:
I need to read a file, add some fields in the records, and write them in another file, but even when I simply read and write the records, the shell interprets some caracters and the result is that the records... (5 Replies)
Discussion started by: Macs_Linux
5 Replies
5. Shell Programming and Scripting
I wrote this script to create and edit a large number of websites based on a template site and a collection of text files which have the relevant strings in them delimited by colons. I run it and the shell doesn't produce any errors, but when it gets to the for loop where it actually has to edit... (2 Replies)
Discussion started by: afroCluster
2 Replies
6. Programming
Is there any way to erase all the contents of a specific line of a text file and then write something on it?
e.g.
test.txt.old:
qwert
asdfg
zxcbv=0
test.txt.new
qwerty
asdfg
hello=0
is this possible with C++ ?:confused: (1 Reply)
Discussion started by: hakermania
1 Replies
7. Shell Programming and Scripting
I have a text file that has data like:
Data "12345#22"
Fred
ID 12345
Age 45
Wilma
Dino
Data "123#22"
Tarzan
ID 123
Age 33
Jane
I need to figure out a way of adding 1,000,000 to the specific lines (always same format) in the file, so it becomes:
Data "1012345#22"
Fred
ID... (16 Replies)
Discussion started by: say170
16 Replies
8. Shell Programming and Scripting
Hi,
I have text file with the header like this
tracking_id condition replicate FPKM
XLOC_000001 alpha 1 10.3199
XLOC_000001 alpha 0 10.3686
XLOC_000001 alpha 2 15.5619
...
With the first column being genes, the second being the condition, the third... (5 Replies)
Discussion started by: 4galaxy7
5 Replies
9. Shell Programming and Scripting
Dear Guru's
I'm using Putty and want to edit a file. I know we generally use vi editor to do it. As I'm not good in using vi editor, I want to convert the vi into something like text pad. Is there any option in Putty to do the same ? Thanks for your response.
Srini (6 Replies)
Discussion started by: thummi9090
6 Replies
lta(4) Kernel Interfaces Manual lta(4)
Name
lta - lta pseudoterminal interface
Syntax
options LAT
pseudo-device lat
pseudo-device lta[n]
Description
The pseudoterminal interface provides support for local area transport (LAT) service. LAT service allows users to access remote nodes
through the Ethernet.
To configure the LAT service for your machine, you must:
o Edit the system configuration file.
o Edit the file.
o Create LAT special files.
o Edit the file.
Instructions for performing these tasks are further documented in the Guide to Ethernet Communications Servers.
Edit the Configuration File
Edit the configuration file to include the option and the and pseudo-devices. The configuration file to edit is located in
/sys/conf/vax/HOSTNAME or /sys/conf/mips/HOSTNAME (depending on your processor), where HOSTNAME is the name of your host processor, in
uppercase.
The optional value for the pseudo-device entry defines the number of LAT lines to configure, a number between 1 and 256. If you do not
specify a value, the default is 16 lines. For example, if you want to configure 32 LAT devices into your system, the entry for the LAT
lines is:
pseudo-device lta32
To use the system as a load host for remote note maintenance functions such as loading and controlling terminal servers, you must also
include an options entry for and a pseudo-device entry for in the configuration file.
Edit the /etc/rc.local File
Edit the file to restart LAT service automatically when the system reboots. Add the following entry after the commands for local daemon
startup:
if [ -f /etc/lcp ]; then
/etc/lcp -s > /dev/console & echo -n ' lat' >/dev/console
fi
Create LAT Special Files
Create the LAT special files by running the program from the directory and specifying the option. You create one LAT special file for each
LAT device. For example, the following commands create 32 device special files for LAT devices:
# cd /dev
# MAKEDEV lta0
# MAKEDEV lta1
The option range is 1 to 7. The maximum number of LAT special files is 256.
Edit the /etc/ttys File
Edit the file to include entries for all the LAT special files you created using the command. For more information on how to add these
entries, see
Files
Contains terminal devices defined to the machine.
Contains terminal devices defined to the machine (modem lines only).
See Also
ttys(5), MAKEDEV(8)
Guide to Ethernet Communications Servers
lta(4)