Sponsored Content
Top Forums Shell Programming and Scripting Copy and Paste Columns in a Tab-Limited Text file Post 302525478 by evelibertine on Thursday 26th of May 2011 07:58:30 PM
Old 05-26-2011
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 ccc ddd eee ddd
fff ggg hhh iii jjj ggg


Family Mother Father Trait ID Phenotype
bbb ccc ddd eee aaa ddd
ggg hhh iii jjj fff ggg

It is a tab-limited text file. How do I achieve this? Thank you!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Copy/Paste text as commands in AIX

Hello, I'm absolutely new to this world... but I've a problem with a terminal connected via PuTTY (or Termlite) to an AIX 5.1 application. The problem: I need to paste from clipboard a text containing both input text strings and special keys as ESC, Arrows and so on, to execute in the AIX... (1 Reply)
Discussion started by: Daniele11
1 Replies

2. Shell Programming and Scripting

Copy Limited rows from one file to another

Hi, The file contains 1000 of rows can you please let me know How to copy 1-10 and 30-40 rows from one file to another. thanks :) (3 Replies)
Discussion started by: ravi214u
3 Replies

3. Solaris

Copy and paste text from a word document into a txt file in vi

Hello, Can anybody please tell me how we can copy and paste text from a word document into a text file that we are editing in vi? Is it possible to do that while we are editing the text file in vi in insert mode? Thanks, (3 Replies)
Discussion started by: Pouchie1
3 Replies

4. Shell Programming and Scripting

to parse (or grep) a number from a datafile and write it to tab limited file

Hi All, I have a folder that contain 100's of subfolders namely: Main folder -> GHFG - Subfoders ->10 100 234 102 345 .. .. ... (2 Replies)
Discussion started by: Lucky Ali
2 Replies

5. UNIX for Dummies Questions & Answers

How to convert text to columns in tab delimited text file

Hello Gurus, I have a text file containing nearly 12,000 tab delimited characters with 4000 rows. If the file size is small, excel can convert the text into coloumns. However, the file that I have is very big. Can some body help me in solving this problem? The input file example, ... (6 Replies)
Discussion started by: Unilearn
6 Replies

6. UNIX for Dummies Questions & Answers

Deleting columns from a tab delimited text file?

I have a tab limited text file with 10000+ columns. I want to delete columns 6 through 23, how do I go about doing that? Thanks! (1 Reply)
Discussion started by: evelibertine
1 Replies

7. Shell Programming and Scripting

Remove blank columns from a tab delimited text file

Hello, I have some tab delimited files that may contain blank columns. I would like to delete the blank columns if they exist. There is no clear pattern for when a blank occurs. I was thinking of using sed to replace instances of double tab with blank, sed 's/\t\t//g' All of the examples... (2 Replies)
Discussion started by: LMHmedchem
2 Replies

8. Shell Programming and Scripting

Make copy of text file with columns removed (based on header)

Hello, I have some tab delimited text files with a three header rows. The headers look like, (sorry the tabs look so messy). index group Name input input input input input input input input input input input... (9 Replies)
Discussion started by: LMHmedchem
9 Replies

9. Shell Programming and Scripting

Copy and paste text inside a xml file

I have a really big XML file. I need copy the value of one tag inside another one tag. I try to publish one example. <channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1">Rai 1</channel> <channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1 +2HD">Rai 1... (6 Replies)
Discussion started by: Tapiocapioca
6 Replies

10. Shell Programming and Scripting

Bash copy and paste text in file from one position to another

Hi I have a text file with lines beginning with 71303, 71403, 71602, I need to copy the 10 digit text at position 30 on lines beginning with 71303 (5500011446) to position 99 on every line beginning with 71602 (see example below), There may be many 71303 lines but I need the text copying to... (2 Replies)
Discussion started by: firefox2k2
2 Replies
APRSMON(8)						     Linux Programmer's Manual							APRSMON(8)

NAME
aprsmon - monitor APRS AX.25 traffic for javAPRS SYNOPSIS
aprsmon [-a] [-m] [-r] [-k minutes] [-p port] [-t title] [-i infofile] DESCRIPTION
Aprsmon uses SOCK_PACKET facilities to provide a network monitor of all AX.25 UI text traffic heard by the system. It is based on lis- ten(1). Aprsmon collects (-m) or displays standard AX.25 UI text frames in a format similar to that output by a standard TNC in "Monitor ON" mode and is intended to be used with programs like javAPRS which wish to see a TNC data stream over a TCP connection. When the aprsmon master has been running for a while and a new aprsmon slave starts up, first all saved up reports are sent, then a title line indicating the beginning of live data is sent, and new reports are sent as received. Compressed position and telemetry reports as generated by the APRS Mic Encoder are translated into the conventional uncompressed APRS Micro-Interface-Module (MIM) telemtry format so that these stations are visible in javAPRS. Reports containing a TheNet X1J4 beacon header are also edited to strip off the header making these nodes visible in javAPRS as well. OPTIONS
-a Allow for the monitoring of outgoing frames as well as incoming ones. -r Choose "raw" mode which allows non-printable data through. -p port Monitor only those frames received on a particular port, by default all AX.25 interfaces are monitored. -m "Master" mode. Retain monitored data for the number of minutes specified with the -k option in a shared memory segment. -k minutes Retain monitored packets going back the given number of minutes. Default is 30. -t title Sets the javAPRS title string. Default is "Live data from Linux." -i infofile Infofile is the path to the file that the aprsmon master writes the shared memory segment and semaphore id's into. Default is "/var/ax25/aprsmon.info." javAPRS CONFIGURATION Set up one aprsmon master running on your system to collect historical data going back a while. You will probably want to set up an /etc/rc.d/init.d script for this. aprsmon -a -m& Add an entry into /etc/services with the port number you want javAPRS to connect on. For example: aprs 14439/tcp # APRS monitor on 144.39 Add an entry into /etc/inetd.conf for this service: aprs stream tcp nowait root /usr/sbin/aprsmon aprsmon -a To test, simply "telnet localhost aprs". To use with javAPRS, set, for example, <PARAM name = "dataFile1" value = "netc:14439:localhost"> in your HTML file as described in the javAPRS documentation, and then use appletviewer to run javAPRS: appletviewer mydemo.html Mic-E to MIM Translation The Mic-E reduces the duration of packet noise on a voice frequency by encoding its data in a compressed form, some of which is binary. Some APRS-decoding software, notably javAPRS, is unable to deal with this data. To solve this problem aprsmon expands the Mic-E packet into one or two MIM packets as follows: @ddhhmmzDDMM.hhN/DDDMM.hhW$cse/spd/E>mon/Mm/status T#MIC,aaabbbcccdddeeefffComments ddhhmm is the UTC day and time the packet was received by the host running aprsmon. DDMM.hhN is the latitude. / is the symbol table selection (/ or ). DDDMM.hhW is the longitude. $ is the symbol. cse,spd are course and speed. E is the type of Mic-Encoder: E - TAPR Mic-Encoder T - Kenwood TH-D7 m is the status message number, and status is the status message number expanded as follows: 0 - Off duty.. 1 - Enroute... 2 - In Service 3 - Returning. 4 - Committed. 5 - Special... 6 - PRIORITY.. 7 - EMERGENCY. aaa,bbb,ccc,ddd,eee,fff are the values of the telemetry channels. FILES
/etc/ax25/axports /var/ax25/aprsmon.info SEE ALSO
call(1), listen(1), beacon(1), ax25(4), axattach(8), http://www.bridge.net/~sdimse/javAPRS.html, http://www.tapr.org, http://www.aprs.net, MIC-E.TXT,TELEMTRY.TXT,PROTOCOL.TXT AUTHOR
Alan Crosswell, n2ygk@weca.org Linux 9 February 1999 APRSMON(8)
All times are GMT -4. The time now is 05:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy