Filtering records from 1 file based on some manipulation doen on second file
Hi,
I am looking for an awk script which should help me to meet the following requirement:
File1 has records in following format
Each record(basically the ID 'AB1234', 'PQ1145' and so on) of File1, should be validated against the following File2, which has format like:
Note that File2 has different ranges for code AB, PQ, XY and so on, so validation won't be straight forward and hence code should be compared first and then the ID should check if it lies in any of the ranges above, associated to that particular code. If it does then the record should be filtered out from File1.
I'll really appreciate if anyone please help me out. Thanks
Hi all,
I would like to extract records of a file based on a condition. The file contains 47 fields, and I would like to extract only those records that match a certain value in one of the columns, e.g.
COL1 COL2 COL3 ............... COL47
1 XX 45 ... (4 Replies)
Can anybody help me with writing a script for the data that I want to use from one file based on the data from another file. I have file1 in this form;
(the first field represents a well name and the second field represents the depth of interest)
FILE1
--------
DATA_35_0 ... (2 Replies)
I have asked this question here before and got the answer too. Unfortunately I used only one record as an example and the script works fine for one record but not for more than one record.
Can anybody help me with writing a script for the data that I want to use from one file based on the... (13 Replies)
I have a ";" delimited file.Whcih conatins a number fileds of length 4 charcters in 8th position
But there is a alphanumeric charcters like :
space, ";" , "," , "/" , "23-1" ,
"23 1" , "aqjhdj" , "jun-23" , "APR-04" , "4:00AM" , "-234" , "56784 ", "." , "+"
"_" , "&" , "*" , "^" , "%" , "!"... (2 Replies)
Hi friends,
I have one file like below. (.csv type)
SNo,data1,data2
1,1,2
2,2,3
3,3,2
and another file like below.
Exclude
data1
where Exclude should be treated as column name in file2.
I want the output shown below.
SNo,data2
1,2
2,3
3,2
Where my data1 column got removed from... (2 Replies)
Hi
I have two files one.txt and two.txt
one.txt
123
324
456
235
456
two txt
abc one 000 123 abc
abc one 000 456 abc
abc one 000 122 abc
abc one 000 111 abc
My question here is, the records which are present in one.txt has to deleted in second file two.txt
my output result... (2 Replies)
Hi,
I have following records in a file
more file1.txt
setting applicaction ABC for user
setting applicaction CDE for user
setting applicaction XXX for user
logging applicaction XXX for user
I need to filter out records which have strings " setting... (5 Replies)
Hi,
I tried filtering the records in a csv file using "awk" command listed below.
awk -F"~" '$4 ~ /Active/{print }' inputfile > outputfile
The output always has all the entries.
The same command worked for different users from one of the forum links.
content of file I was... (3 Replies)
Discussion started by: sunilmudikonda
3 Replies
LEARN ABOUT DEBIAN
byzanz-record
BYZANZ-RECORD(1) General Commands Manual BYZANZ-RECORD(1)NAME
byzanz-record - record your desktop session to an animated GIF
SYNOPSIS
byzanz-record [options] FILENAME
DESCRIPTION
Byzanz records your desktop session to an animated GIF. You can record your entire screen, a single window, or an arbitrary region.
byzanz-record allows you to make recordings from the command line. Graphical users may want to use the panel applet instead.
OPTIONS
Application Options:
-d, --duration=SECS
Duration of animation (default: 10 seconds)
--delay=SECS
Delay before start (default: 1 second)
-c, --cursor
Record mouse cursor
-a, --audio
Record audio from the default input device. This only works if the output format supports it and will otherwise cause an error.
-x, --x=PIXEL
X coordinate of rectangle to record
-y, --y=PIXEL
Y coordinate of rectangle to record
-w, --width=PIXEL
Width of recording rectangle
-h, --height=PIXEL
Height of recording rectangle
-v, --verbose
Be verbose
--display=DISPLAY
X display to use
Help Options:
-?, --help
Show help options
--help-gtk
Show GTK+ Options
--help-all
Show all help options
OUTPUT FILE
After byzanz-record is finished, the recording is written to FILENAME. The format is determined by the filename extension. The following
formats are supported:
gif Record to an animated GIF image. Use this if you want to record a mostly static screen with a limited amount of colors, such as
using a file manager or an office application. This is the default and will be used if an unrecognized extension is used.
ogg, ogv
Record to an Ogg Theora video. This format supports audio. Use this if you want to record dynamic contents, such as video playback.
flv Record to a Flash Screen video. This recording method is lossless. Use it if you want to postprocess the file in other applications.
byzanz Record to Byzanz' internal debugging format. This is useful for benchmarking Byzanz or if you want to convert the recording to mul-
tiple formats later. You can use byzanz-playback(1) to convert the file.
SEE ALSO byzanz-playback(1)AUTHOR
Byzanz was written by Benjamin Otte <otte@gnome.org>.
This manual page was last updated for version 0.2.1.
BYZANZ-RECORD(1)