You must capture a digit that is followed by a space. Because all the matched part is substituted, you must put it back with \1 and \2 that refer to the 1st and 2nd \(capture group\).
Because I put the Oct in a group, you can easily generalize it, to match all 3-letter month names: \([A-Z][a-z][a-z]\)
This User Gave Thanks to MadeInGermany For This Post:
Hi,
I have a file name, for which I want to strip out the first bit and leave the rest...
So I want to take the file name .lockfile-filename.10001 ,strip it and have only filename.10001 ...
Thanking you all inadvance,
Zak (6 Replies)
Hello,
if I've a list of number
23
34
56
78
how I can place a sequence of ordinated number in a boundary column so
1 23
2 34
3 56
4 78
Thanks in advance! (3 Replies)
Hi All,
I want to read one number from the file.
Only one number will be there in the file.
then i have to increment the number in my script and put it back in the same file.
Is it possible?
Can anybody help me?
Thanks,
Vinay (6 Replies)
Hello
How do i check that correct input files are used while using AWk and SED for file manipulation?
e.g
awk '/bin/ {print $0 }' shell.txt
sed 's/hp/samsung/' printers.txt
how do i ensure that the correct input files I am working with are used? (5 Replies)
I have large number of data files, close to 300 files, lets say all files are same kind and have extension .dat , each file have mulitple lines in it.
There is a unique line in each file containing string 'SERVER'. Right after this line there is another line which contain a string 'DIGIT=0',... (4 Replies)
Hi,
I would really appreciate some help, I couldn't nail my problem:
I would like to create some setter and getter functions to make my life easier.
my sample file contains:
keyword - some tabs - value - semicolon
number 12.1;
float .3;
double 12;
real 12.2324;
stuff .234;
decimal... (5 Replies)
I have a comma separated file containing numbers, I would like to read the file and divide each number by 1024 and create an output file.
Input file :
50312.00,3434.05, ,3433.34,124344.00,434343.00, , ,
Output file:
49.13,3.35,3.35,0,12.05,424.16,0,0
Please click this link: How to... (2 Replies)
I am trying to count the number of records from different files using grep, and then place the result in a separate variable for each file, so at the end of my shell script, I can sum all the variables and check if the number of records are equal to what I was expecting. It is weird butwc -ldoes... (2 Replies)
Hello, I have a large flat file where i need to change data in columns 131-133 based on what is in columns 172-173. I am not sure if I need to read the file line by line and make the change or if I can do this in a single statement. thank you (3 Replies)
Hi I was hoping someone could help me with a sed script I am trying to write? I am on a Mac running ElCapitan
I have some text that I have converted from a pdf that I want to format into an xml file.
In the file I have managed to delete all the text I do not need. The text I have left is... (8 Replies)
Discussion started by: Paul Walker
8 Replies
LEARN ABOUT DEBIAN
evtest-capture
EVTEST-CAPTURE(1)EVTEST-CAPTURE(1)NAME
evtest-capture - Input device event capture program
SYNOPSIS
evtest-capture "/dev/input/eventX" [evtest-capture.xml]
DESCRIPTION
evtest-capture captures the information and events from the input device specified on the command line and writes it to the xml file given.
If no filename is given for the output file, evtest-capture.xml is chosen as default.
evtest-capture needs to be able to read from the device; in most cases this means it must be run as root.
Together with with evtest-create-device.xsl, a simple uinput-based software input device can be created that replays the events as if the
same input was performed on the physical device. This can be useful to replicate bugs with input devices in upper layers of the stack.
To convert evtest-capture.xml into such a uinput device, run:
xsltproc evtest-create-device.xls evtest-capture.xml > mydevice.c
gcc -o mydevice mydevice.c
./mydevice
DIAGNOSTICS
If evtest-capture does not see any events even though the device is being used, the device may be grabbed by a process (EVIOCGRAB). This is
usually the case when debugging a synaptics device from within X. VT switching to a TTY or shutting down the X server terminates this grab
and synaptics devices can be debugged.
SEE ALSO evtest(1)AUTHOR
evtest-capture was written by Peter Hutterer <peter.hutterer@redhat.com[1]>.
NOTES
1. peter.hutterer@redhat.com
mailto:peter.hutterer@redhat.com
05/21/2012 EVTEST-CAPTURE(1)