awk to parse current and next row in tab-delimited file
Hi there,
I would like to use awk to reformat a tab-delimited file containing three columns as follows:
Data file:
Desired output file:
I need the value in the third column +1 to be paired with the next value in the second column -1, and so on. The resultant output would be a single line containing the name of the first column followed by a space and then the parsed paired coordinates.
Thank you very much for your help!
Last edited by emiley; 07-26-2016 at 06:05 PM..
Reason: code not appearing correctly
Hey Everybody,
I am having much trouble figuring this out, as I am not really a programmer..:mad:
Datafile.txt
Column0 Column1 Column2
ABC DEF xxxGHI
I am running using WGET on a cronjob to grab a datafile, but I need to cut the first three characters from... (6 Replies)
Hi all, I need help to split a tab-delimited list into separate files by the filename-field. The list is already sorted ascendingly by filename, an example list would look like this;
filename001 word1 word2
filename001 word3 word4
filename002 word1 word2
filename002 word3 word4... (4 Replies)
Hello gurus,
I have a file in a tab delimited format and a header row. I need a code to delete the header in the file, and convert the file to a fixed width format, with all the columns aligned. Below is a sample of the file:... (4 Replies)
I have a file which was pipe delimited, I need to make it tab delimited. I tried with sed but no use
cat file | sed 's/|//t/g'
The above command substituted "/t" not tab in the place of pipe.
Sample file:
abc|123|2012-01-30|2012-04-28|xyz
have to convert to:
abc 123... (6 Replies)
I am fairly new to programming and trying to resolve this problem. I have the file like this.
CHROM POS REF ALT 10_sample.bam 11_sample.bam 12_sample.bam 13_sample.bam 14_sample.bam 15_sample.bam 16_sample.bam
tg93 77 T C T T T T T
tg93 79 ... (4 Replies)
Hi How to make tab delimited file to space delimited?
in put file:
ABC kgy
jkh ghj
ash kjl
o/p file:
ABC kgy
jkh ghj
ash kjl
Use code tags, thanks. (1 Reply)
Hi, I have a rquirement in unix as below .
I have a text file with me seperated by | symbol and i need to generate a excel file through unix commands/script so that each value will go to each column.
ex:
Input Text file:
1|A|apple
2|B|bottle
excel file to be generated as output as... (9 Replies)
Hello Everyone..
I want to replace the retail col from FileI with cstp1 col from FileP if the strpno matches in both files
FileP.txt
... (2 Replies)
Discussion started by: YogeshG
2 Replies
LEARN ABOUT DEBIAN
netris-sample-robot
netris-sample-robot(6) Netris Sample Robot netris-sample-robot(6)NAME
netris-sample-robot - sample robot for netris
SYNOPSIS
netris-sample-robot [-l]
DESCRIPTION
The netris-sample-robot is a sample implementation of the robot protocol. It plays quite well but isn't too hard to beat. The robot should
be started from netris with the option -r to connect or wait for another player to join. You can also let two robots play against each
other in that way, if you like.
OPTIONS -l Writes some log information into the file log in the current working directory. If it can't it bails out.
EXAMPLES
To start the netris-sample-robot waiting for another connection with logfile use the following line:
netris -w -r 'netris-sample-robot -l'
You then just have to start netris somewhere else which connects to that robot.
SEE ALSO netris(6)BUGS
One known bug of the netris-sample-robot is that it hangs quite often. This was already filed as a bugreport against the package so please
refrain from doing so again. If you have an idea why this happens or know a solution how to fix it feel free to mail us.
AUTHORS
Netris was written by Mark H. Weaver <mhw@netris.org>.
This manual page was written by Gerfried Fuchs <alfie@debian.org> for the Debian GNU/Linux system (but may be used by others).
0.5 16 Feb 2002 netris-sample-robot(6)