08-18-2010
Your understanding is totally corect
Yes. This is exactly what is required.
Also there are around 1 million records in the file and the command/script should check all records.
And there are 15 similar conditions.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi All,
I have one file that sits on 4 diffrent servers, those servers are diffrent region based and they are authentication protected and that file has a diff port numbers, so when run the script it must ask my login details,region of server and port no for that file once it took from me... (1 Reply)
Discussion started by: tmarjuna
1 Replies
2. Shell Programming and Scripting
Greetings.
So the question is basically the same as it's in the title.
I'd like to write a program that changes a file by rows. So to clarify it.
(i know i shouldn't use code,/code here but i would like to separate it)
So for example a text file looks like something like this:
Happy... (5 Replies)
Discussion started by: buddhist
5 Replies
3. Shell Programming and Scripting
Input file
>Read_1
XXXXXXXXXXSDFXXXXXDS (condition 1: After the last "X" per line, if the distance is less than or equal to 3 letter, replace those not "X" letter with "X")
TREXXXXXXXSDFXXXXXDS (condition 2: Before the first "X" per line, if the distance is less than or equal to 3 letter,... (12 Replies)
Discussion started by: patrick87
12 Replies
4. Shell Programming and Scripting
Input file
>Read_1
XXXXXXXXXXSDFXXXXXDS
ASDRXXXXXTGAGTXXXXXT
TGTGATXXXXXAXXXXGXXA
.
.
Desired output file
>Read_1
XXXXXXXXXXXXXXXXXXDS
ASDRXXXXXTGAGTXXXXXT
TGTGATXXXXXXXXXXXXXA
.
. (5 Replies)
Discussion started by: patrick87
5 Replies
5. Linux
Good day to you all,
Just want to check here, i know when scping a file, size might change due to space issue. it might sound silly, but does file content get change too? if so, what kind of situation that might be? (1 Reply)
Discussion started by: ahtat99
1 Replies
6. Shell Programming and Scripting
Arun kumar something somehting Enterting in to the line
.
.
.
.
Some text text Finshing the sentence
Some other text
.
.
.
.
Again something somehting Enterting in to the line
.
.
.
.
.
.
Again text text Finshing the sentence (6 Replies)
Discussion started by: arukuku
6 Replies
7. Shell Programming and Scripting
Input file:
Total_counts 1306726155 100%
Number_of_count_true 855020282
Number_of_count_true_1 160014283
Number_of_count_true_2 44002825
Number_of_count_true_3 18098424
Number_of_count_true_4 24693745
Number_of_count_false 115421870
Number_of_count_true 51048447
Total_number_of_false
... (2 Replies)
Discussion started by: perl_beginner
2 Replies
8. Shell Programming and Scripting
Input file
data_2 USA
data_2 JAPAN
data_3 UK
data_4 Brazil
data_5 Singapore
data_5 Indo
data_5 Thailand
data_6 China
Desired output file
data_2 USA/JAPAN
data_3 UK
data_4 Brazil
data_5 Singapore/Indo/Thailand
data_6 China
I would like to merge all data content that share same... (2 Replies)
Discussion started by: perl_beginner
2 Replies
9. Shell Programming and Scripting
Hi,
i have a file input.txt
Continent North America
Country USA Capital Washington D.C.
Country Canada Capital Ottawa
Continent South America
Country Argentina Capital Buenos Aires
Country Brazil Capital Brasília
Coutry Colombia Capital Bogotá
and i want to get an output.txt
... (3 Replies)
Discussion started by: fastlane3000
3 Replies
10. Shell Programming and Scripting
Hello,
I would like to change the content of the file that has few blocks starts with 10 and ends with ";"
File1.txt
10 bonuses D
20 MATCHED
30 UPD COL
40 (SOL=30)
20 NOT MATCHED
30 INS COL
40 (SOL=30)
;
10 bonuses D
20 MATCHED
30 UPD COL
40... (5 Replies)
Discussion started by: Mannu2525
5 Replies
LEARN ABOUT DEBIAN
rsyncrypto_recover
RSYNCRYPTO_RECOVER(1) Rsyncrypto_recover User Manual RSYNCRYPTO_RECOVER(1)
NAME
rsyncrypto_recover - recover all usable data from corrupted rsyncrypto filemaps
SYNOPSIS
rsyncrypto_recover badfile > goodfile
DESCRIPTION
This manual page documents the rsyncrypto_recover command.
When the rsyncrypto command is used with the --name-encrypt command, a file containing the mapping from the plain text representation to
the encrypted file names is formed. This file mapping has a strict format of records delimited by a NULL byte.
A bug introduced in version 1.07 or rsyncrypto, and solved in version 1.09, caused this file to be somewhat corrupted under certain circum-
stances, most notably the use of the --delete-keys command line option.
It is important to note that the only records corrupted are records that were due to be deleted anyways. This bug did not result in any
loss of actual important data. It did, however, leave behind a file that rsyncrypto then refused to open.
rsyncrypto_recover will read in a file map, and output to the standard output only those records that are valid.
PARAMETERS
badfile
A file map that contains some good and some corrupted records.
SEE ALSO
rsyncrypto(1)
AUTHOR
rsyncrypto was written by Shachar Shemesh for Lingnu Open Source Consulting ltd. http://www.lingnu.com
This manual page was written by Shachar Shemesh <shachar@debian.org>
PROJECT HOMEPAGE
http://rsyncrypto.lingnu.com
Lingnu Open Source Consulting May 13, 2008 RSYNCRYPTO_RECOVER(1)