hi all:b:,
how to read the column and print the values under that column ...??
file1 have something like this
cat file1
=======
column1, column2,date,column3,column4.....
1, 23 , 12/02/2008,......
2, 45, 14/05/2008,.....
3, 56, 16/03/2008,.....
cat file2
=======... (6 Replies)
I'm having problems since few days ago, and i'm not able to make it works with a simple awk+grep script (or other way to do this).
For example, i have a input file1.txt:
cat inputfile1.txt
218299910417
1172051195
1172070231
1172073514
1183135117
1183135118
1183135119
1281440202
... (3 Replies)
Hi All,
I have a file which is having 3 columns as (string string integer)
a b 1
x y 2
p k 5
y y 4
.....
.....
Question:
I want get the unique value of column 2 in a sorted way(on column 2) and the sum of the 3rd column of the corresponding rows. e.g the above file should return the... (6 Replies)
Hi. How do I find an expression with awk in only one column, and if it fits, then print that whole column.
1 apple oranges
2 bannanas pears
3 cats dogs
4 hesaid shesaid
echo "which number:"
read NUMBER (user inputs number 2 for this example)
awk " /$NUMBER/ {field to search is field... (2 Replies)
Hi,
I have a file filled with search strings which have a blank in between and look like this:
S. g. Ehr.
o. Jg.
v. d. Chijs
g. Ehr.
Now i would like to search for the strings and it also shall return the next column after the match.
awk -v FILE="search_strings.txt" 'BEGIN {... (10 Replies)
Dear All,
I have a data file input.csv like below. (Only five column shown here for example.)
Data1,StepNo,Data2,Data3,Data4
2,1,3,4,5
3,1,5,6,7
3,2,4,5,6
5,3,5,5,6
From this I want the below output
Data1,StepNo,Data2,Data3,Data4
2,1,3,4,5
3,1,5,6,7
where the second column... (4 Replies)
file1:
file2:
I need to find matches for any lines in file1 that appear in file2. Desired output is '>' plus the file1 term, followed by the line after the match in file2 (so the title is a little misleading):
This is honestly beyond what I can do without spending the whole night on it, so I'm... (2 Replies)
Hi all,
I am new to using awk and am quickly discovering what a powerful pattern-recognition tool it is. However, I have what seems like a fairly basic task that I just can't figure out how to perform in one line. I want awk to find and print all the lines in which one of multiple patterns (e.g.... (8 Replies)
Example:
I have files in below format
file 1:
zxc,133,joe@example.com
cst,222,xyz@example1.com
File 2 Contains:
hxd
hcd
jws
zxc
cst
File 1 has 50000 lines and file 2 has around 30000 lines :
Expected Output has to be :
hxd
hcd
jws (5 Replies)
Discussion started by: TestPractice
5 Replies
LEARN ABOUT DEBIAN
joy2key
JOY2KEY(1) General Commands Manual JOY2KEY(1)NAME
joy2key - Emulate keyboard events using a Joystick
SYNOPSIS
joy2key Usage: joy2key ["Window Name"]
[ -rawconsole ]
[ -terminal ]
[ -X ]
[ -axis [(axis0) low hi] [(axis1) low hi] ...]
[ -thresh [(axis0) low hi] [(axis1) low hi] ...]
[ -buttons [(button0)] [(button1)] [(button2)] ...]
[ -dev {/dev/input/js0} ]
[ -rcfile {.joy2keyrc} ]
[ -config {no default} ]
[ -autorepeat {(freq) 5} ]
[ -deadzone {(percent) 50} ]
note: [] denotes `optional' option or argument,
() hints at the wanted arguments for options
{} denotes default (compiled-in) parameters
(note: defaults may have been changed by editing joy2key.c)
DESCRIPTION
joy2key monitors the joystick (normally /dev/input/js0) and sends keyboard events to an X window, terminal, or raw console. In the case of
X, xwininfo(1) is used to retrive the window ID, which should not be a problem as this is a standard utility in most X11 distributions. To
find the symbolic name of a particular key, see include/X11/keysymdef.h. In terminal mode, joy2key sends the ascii character given on the
command line (that is, "joy2key -buttons a" means send lowercase 'a' when the first joystick button is pushed). In raw console mode,
please consult the document "rawscancodes" included in this distribution for the proper scancodes.
Options
-X Send X events. May be compiled out of your copy of joy2key.
-rawconsole
For SVGALIB and similar programs that put the keyboard in raw mode. Sends scancodes. May be compiled out of your copy of joy2key.
-terminal
Send ascii characters. May be compiled out of your copy of joy2key.
-axis Specifies actions to send when passing low/high values for each axis. Specified in pairs, from axis0 ... axisN, that is, the X axis
is axis0, then the Y axis (axis1), then if you have a joystick hat that may be axis 2 and 3, etc. To figure out which axis is
which, use the jstest program that comes with the joystick driver.
-buttons
Similar to -arrows, but for buttons. Goes from button0 ... buttonN, specifying key to send for each button on joystick. Use the
jstest program to determine the numbering for each button.
-thresh
Specifies low/high thresholds to use (i.e. at what point moving the stick or pressing the gamepad triggers an event) in pairs, for
each joystick axis.
-dev Specifies joystick device to use. Defaults /dev/input/js0 (first joystick)
-autorepeat
Turns on and optionally specifies autorepeat frequency, i.e. the number of times per second a button which is held down will be
repeated.
-deadzone
Controls sensitivity when manually calibrating.
-rcfile
Sets the rc file to look in.
-config
Reads in a config in an rc file.
FILES
/dev/js[01] The joystick driver. Must be installed for joy2key to work. Joy2key only supports versions 1.0+ of the joystick driver.
Older versions of joy2key use the 0.8.0 joystick driver. If for some reason a 1.0+ joystick driver does not work for you, use joy2key 1.2.
The Linux joystick driver is available at
http://atrey.karlin.mff.cuni.cz/~vojtech/joystick/
~/.joy2keyrc Rc file searched for commands in -config.
The joy2key homepage is located at:
http://interreality.org/~tetron/technology/joy2key/
BUGS
I don't like writing man pages, so this man page may be buggy :)
COPYING
This is free software under the GNU General Public License. See COPYING in the archive to more information.
17 August 1998 JOY2KEY(1)