Sponsored Content
Top Forums Shell Programming and Scripting Make copy of text file with columns removed (based on header) Post 302931888 by ongoto on Friday 16th of January 2015 07:17:23 AM
Old 01-16-2015
Edit:
Code removed: not working right.

Last edited by ongoto; 01-16-2015 at 06:45 PM..
This User Gave Thanks to ongoto For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Merging two files based on two columns to make a third file

Hi there, I'm trying to merge two files and make a third file. However, two of the columns need to match exactly in both files AND I want everything from both files in the output if the two columns match in that row. First file looks like this: chr1 10001980 T A Second... (12 Replies)
Discussion started by: infiniteabyss
12 Replies

2. Shell Programming and Scripting

Copy and Paste Columns in a Tab-Limited Text file

I have this text file with a very large number of columns (10,000+) and I want to move the first column to the position of the six column so that the text file looks like this: Before cutting and pasting ID Family Mother Father Trait Phenotype aaa bbb ... (5 Replies)
Discussion started by: evelibertine
5 Replies

3. UNIX for Dummies Questions & Answers

Extracting rows from a text file based on the values of two columns (given ranges)

Hi, I have a tab delimited text file with multiple columns. The second and third columns include numbers that have not been sorted. I want to extract rows where the second column includes a value between -0.01 and 0.01 (including both numbers) and the first third column includes a value between... (1 Reply)
Discussion started by: evelibertine
1 Replies

4. Shell Programming and Scripting

Reading columns from a text file and to make an array for each column

Hi, I am not so familiar with bash scripting and would appreciate your help here. I have a text file 'input.txt' like this: 2 3 4 5 6 7 8 9 10 I want to store each column in an array like this a ={2 5 8}, b={3 6 9}, c={4 7 10} so that i can access any element, e.g b=6 for the later use. (1 Reply)
Discussion started by: Asif Siddique
1 Replies

5. Shell Programming and Scripting

Extract columns based on header

Hi to all, I have two files. File1 has no header, two columns: sample1 A sample2 B sample3 B sample4 C sample5 A sample6 D sample7 D File2 has a header, except for the first 3 columns (chr,start,end). "sample1" is the header for the 4th ,5th ,6th columns, "sample2" is the header... (4 Replies)
Discussion started by: aec
4 Replies

6. Emergency UNIX and Linux Support

Average columns based on header name

Hi Friends, I have files with columns like this. This sample input below is partial. Please check below for main file link. Each file will have only two rows. ... (8 Replies)
Discussion started by: jacobs.smith
8 Replies

7. UNIX for Beginners Questions & Answers

Keep only columns in first two rows based on partial header pattern.

I have this code below that only prints out certain columns from the first two rows (doesn't affect rows 3 and beyond). How can I do the same on a partial header pattern “G_TP” instead of having to know specific column numbers (e.g. 374-479)? I've tried many other commands within this pipe with no... (4 Replies)
Discussion started by: aachave1
4 Replies

8. Shell Programming and Scripting

Find columns in a file based on header and print to new file

Hello, I have to fish out some specific columns from a file based on the header value. I have the list of columns I need in a different file. I thought I could read in the list of headers I need, # file with header names of required columns in required order headers_file=$2 # read contents... (11 Replies)
Discussion started by: LMHmedchem
11 Replies

9. Shell Programming and Scripting

Find header in a text file and prepend it to all lines until another header is found

I've been struggling with this one for quite a while and cannot seem to find a solution for this find/replace scenario. Perhaps I'm getting rusty. I have a file that contains a number of metrics (exactly 3 fields per line) from a few appliances that are collected in parallel. To identify the... (3 Replies)
Discussion started by: verdepollo
3 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)
All times are GMT -4. The time now is 10:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy