Please consider the following file, I have many groups which can be of 3 types, T1 (Serial_Number 1) T2 (Serial_Number 2) and T1*T2 (all other Serial_Number).
I want to only consider groups that have both T1 and T2 present and their values are different from each other. In the example file, Group3 and Group 5 are not to be considered for the same reasons.
Important to mention that the data is not sorted, so T1, T2 and T1*T2 rows are scattered in the file, in no particular order.
I want to add a column to the output , only for types T1*T2 that states if they match the corrsponding value of T1 in the group, or T2 in the group or doesnt match any of T1 or T2.
For example for Group1, the value of T1*T2 (Serial_number 3) is 'at' which
doesnt match its T1 value of 'aa' or T2 value of 'tt'. So it is 'different'
For Group1, the value of T1*T2 (Serial_number 4) is 'tt' which matches T2 value of 'tt' , so it assigned 'T2-like'
I have following command which tells me File size in GBs which are greater than 0.01GBs recursively in a dir structure.
ls -l -R | awk '{ if ($5/1073741824 >= 0.01) print $9, $5/1073741824 }'
But there are some files whom I dont have enough permissions, after executing this script
gives me... (1 Reply)
Hi All,
I have the below input and expected ouput. I need a code which can scan through this input file and if the number in column1 is more than 1 , it will print out the whole line, else it will output "No Re-occurrence". Can anybody help ?
Input:
1 vvvvv 20 7 7 23 0 64
6 zzzzzz 11 5... (7 Replies)
file1 contain: (this just a small sample of data it may have thousand of lines)
1 aaa 1/01/1975 delhi
2 bbb 2/03/1977 mumbai
3 ccc 1/01/1975 mumbai
4 ddd 2/03/1977 chennai
5 aaa 1/01/1975 kolkatta
6 bbb 2/03/1977 bangalore
program:
nawk '{
idx= $2 SUBSEP $3
arr = (idx in arr) ?... (2 Replies)
Hello Gurus,
Please help me out of the problem. I ve a input file as below
input clock;
input a; //reset all
input b;
//input comment
output c;
output d;
output e;
input f;
//output comment
I need the output as follows:
\\Inputs (1 Reply)
Hi All,
I need some help in parsing out the first (top) data lines of each category (categories are based on the first column a, b, c, d, e.( see example file below) from a big file
a dfg 3 6 8 9
a fgh 5 7 0 9
a gkl 5 2 4 7
a glo 7 0 1 5
b ghj 9 0 4 2
b mkl 7 8 0 5
b jkl 9 0 4 5
c jkl 2... (1 Reply)
Hi ,
i have file with delimiter as "|" and data in Double codes for all fields. how to filter data in a column like awk -F"|" '$1="asdf" {print $0}' test.
ex : "asdf"|"zxcv"
Thanks,
Soma (1 Reply)
I am trying to filter out some data with awk. If someone could help me that would be great. Below is my input file.
Date: 10-JUN-12 12:00:00
B 0: 00 00 00 00 10 00 16 28
B 120: 00 00 00 39 53 32 86 29
Date: 10-JUN-12 12:00:10
B 0: 00 00 00 00 10 01 11 22
B 120: 00 00 00 29 23 32 16 29... (5 Replies)
Hi,
I have some data like seen below.
format : apple(hhmm mm/dd).fruit
apple(2345 03/25).fruit
apple(2345 05/06).fruit
orange(0443 05/02).fruit
orange(0345 05/05).fruit
orange(2134 05/04).fruit
grape(0930 04/24).fruit
grape(2330 03/30).fruit
I need to get the data which are... (1 Reply)
Hi Everyone,
I need help on figuring out a way to filter some data that I get back from an API. Im able to get all the data that Im looking for but I would like to know a way for me to filter it better. The data that Im getting back is basically 2 rows of data as seen here.
Row 1 ... (25 Replies)
please help with the following.
I have 4 col data .. instrument , category, variable and value. the instruments belong to particular categories and they all measure some variables (var1 and var2 in this example), the last column is the value an instrument outputs for a variable.
I have used... (0 Replies)
Discussion started by: ritakadm
0 Replies
LEARN ABOUT DEBIAN
csync2
CSYNC2(1) General Commands Manual CSYNC2(1)NAME
csync2 - cluster synchronization tool, 2nd generation
SYNOPSIS
csync2 [-v..] [-C config-name] [-D database-dir] [-N hostname] [-p port]...
DESCRIPTION
This manual page documents briefly the csync2 command.
A verbose manual can be found on the csync2 homepage:
http://oss.linbit.com/csync2/paper.pdf
csync2 is a program for cluster synchronization.
OPTIONS
With file parameters:
-h [-r] file..
Add (recursive) hints for check to db
-c [-r] file..
Check files and maybe add to dirty db
-u [-d] [-r] file..
Updates files if listed in dirty db
-f file..
Force this file in sync (resolve conflict)
-m file..
Mark files in database as dirty
Simple mode:
-x [-d] [[-r] file..]
Run checks for all given files and update remote hosts.
Without file parameters:
-c Check all hints in db and eventually mark files as dirty
-u [-d]
Update (transfer dirty files to peers and mark as clear)
-H List all pending hints from status db
-L List all file-entries from status db
-M List all dirty files from status db
-S myname peername
List file-entries from status db for this synchronization pair.
-T Test if everything is in sync with all peers.
-T filename
Test if this file is in sync with all peers.
-T myname peername
Test if this synchronization pair is in sync.
-T myname peer file
Test only this file in this sync pair.
-TT As -T, but print the unified diffs.
Notice: The modes -H, -L, -M and -S return 2 if the requested db is empty. The mode -T returns 2 if both hosts are in sync.
-i Run in inetd server mode.
-ii Run in stand-alone server mode.
-iii Run in stand-alone server mode (one connect only).
-R Remove files from database which do not match config entries.
Modifiers:
-r Recursive operation over subdirectories
-d Dry-run on all remote update operations
-B Do not block everything into big SQL transactions. This slows down csync2 but allows multiple csync2 processes to access the data-
base at the same time. Use e.g. when slow lines are used or huge files are transferred.
-A Open database in asynchronous mode. This will cause data corruption if the operating system crashes or the computer loses power.
-I Init-run. Use with care and read the documentation first! You usually do not need this option unless you are initializing groups
with really large file lists.
-X Also add removals to dirty db when doing a -TI run.
-U Don't mark all other peers as dirty when doing a -TI run.
-G Group1,Group2,Group3,...
Only use this groups from config-file.
-P peer1,peer1,...
Only update this peers (still mark all as dirty).
-F Add new entries to dirty database with force flag set.
-t Print timestamps to debug output (e.g. for profiling).
-s filename
Print timestamps also to this file.
-W fd Write a list of directories in which relevant file can be found to the specified file descriptor (when doing a -c run). The direc-
tory names in this output are zero-terminated.
Creating key file:
csync2 -k filename
Warning: Csync2 will refuse to do anything when a /etc/csync2.lock file is found.
SEE ALSO sqlite(1).
AUTHOR
csync2 was written by Clifford Wolf <clifford@clifford.at>.
This manual page was written by Michael Prokop <mika@grml.org>, for the Debian project (but may be used by others). It is now further main-
tained by Clifford Wolf.
September 23, 2005 CSYNC2(1)