I have data like:
Blue Apple 6
Red Apple 7
Yellow Apple 8
Green Banana 2
Purple Banana 8
Orange Pear 11
What I want to do is if $2 in a row is the same as $2 in the previous row remove that row. An identical $2 may exist more than one time.
So the out file would look like:
Blue... (4 Replies)
I want to write a scrpit to merge files row wise (actually concatinating)
main.txt
X Y Z
file 1
A B C
file 2
1 2 3
now i want the script to check if the file1 is empty or not, if empty then make it like
A B C
1 2 3
again to check if second file is empty if not do as done... (0 Replies)
My source contain like this
%%START CBLOADER CBLOADER BRBAI2 000090
01,011600033,011600033,110516,0801,3,90,,2/
02,011600033,011103093,1,110317,0801,,2/
%%END BRBAI2 000644
sub
i want remove header and second last row in given file
My output like this... (5 Replies)
I have this
text.filecharles darwin sam delight
george washington johnson culper
darwin sam delight
micheal jackson penny lite and would like to remove the row, if the first field is blank. so the result would be:
result.filecharles darwin sam ... (4 Replies)
Hi Friends,
I have a single column data like below.
1
2
3
4
5
I need the output like below.
0
1
2
3
4
where each row (including first row) subtracting from first row and the result should print below like the way shown in output file.
Thanks
Sid (11 Replies)
Hi! Is there a way to append column and row header to a file in awk script.
For example if I have
Jane F 39 manager
Carlos M 40 system administrator
Sam F 20 programmer
and I want it to be
# name gend age occup
1 Jane F 39 manager
2 Carlos M ... (4 Replies)
this is the requirement
list.txt
table1
table2
table3
testfile.txt
name#place#data#select * from table1
name2#place2#data2#select * from table 10 innerjoin table3
name2#place2#data2#select * from table 10
output
name place table1
name2 place table3
i tried using awk (7 Replies)
Hi there,
I would like to use awk to reformat a tab-delimited file containing three columns as follows:
Data file:
sample 1 173
sample 269 530
sample 687 733
sample 1699 1779
Desired output file:
sample 174..265, 531..686, 734..1698
I need the value... (5 Replies)
I am trying to remove $1 along with the blank values from the file. Thank you :).
file
R_Index Chr Start End Ref Alt Func.IDP.refGene Gene.IDP.refGene GeneDetail.IDP.refGene Inheritence ExonicFunc.IDP.refGene AAChange.IDP.refGene avsnp147 PopFreqMax ... (5 Replies)
Discussion started by: cmccabe
5 Replies
LEARN ABOUT DEBIAN
gomoku
GOMOKU(6) BSD Games Manual GOMOKU(6)NAME
gomoku -- game of 5 in a row
SYNOPSIS
gomoku [-bcdu] [-D debugfile] [inputfile]
DESCRIPTION
gomoku is a two player game where the object is to get 5 in a row horizontally, vertically or diagonally on a 19 by 19 grid. By convention,
black always moves first. With no arguments, gomoku will display a playing board and prompt for moves from the user. Valid moves are a let-
ter for the column and a number for the row of an empty board location. Entering ``quit" or ``resign" will end the game. You can save the
current state of the game by entering ``save" and supplying a file name when prompted. The optional file inputfile can be used to restore a
saved game.
The options are:
-b This option sets background mode. Input moves are read from standard input, the computer picks a move, and prints it to standard
output. The first input line should be either ``black" or ``white" to specify whether gomoku has the first move or not respectively.
This option was intended for game tournaments where a referee program handles the board display and pits one program against another.
-c Computer versus computer. gomoku will play a game against itself. This is mostly used for testing.
-d Print debugging information. Repeating this option more than once yields more detailed information.
-D debugfile
Print the debug information to debugfile instead of to the standard output.
-u User versus user. This is mostly used for testing.
AUTHOR
Ralph Campbell
ACKNOWLEDGEMENTS
The board display routines were based on the goref program written by Peter Langston.
BSD August 4, 1994 BSD