03-28-2007
Quote:
Originally Posted by ynixon
can you add a simple sort to the output (within the perl)
found the soludtion:
foreach my $key (
sort keys %fileHash ) {
print "$key;$fileHash{$key}\n";
}
Is it right ?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Whenever i press the backspace key, a new line appears, i.e. it works like a enter key. :confused:
Thanks (2 Replies)
Discussion started by: vibhor_agarwali
2 Replies
2. Shell Programming and Scripting
I posted a problem last week that had essentially two steps. Someone was kind enough to help me with the first step, but beacuse I didn't explain things well, left out the second step. I'm required to work in C Shell. I deeply appreciate any help, since I've never worked in a shell language... (4 Replies)
Discussion started by: bassmaster
4 Replies
3. UNIX for Dummies Questions & Answers
Hi There,
I have set encryption key to my file using :X command.
Now that I no more need encryption key to the file, I just want to delete/remove the encryption key. I have gone through many source but in vain. None of the source provided me with the solution that I am looking for.
I... (2 Replies)
Discussion started by: grc
2 Replies
4. Solaris
Hi, I've used the following way to set ssh public key authentication and it is working fine on Solaris 10, RedHat Linux and SuSE Linux servers without any problem. But I got error 'Server refused our key' on Solaris 8 system. Solaris 8 uses SSH2 too. Why? Please help. Thanks.
... (1 Reply)
Discussion started by: aixlover
1 Replies
5. Shell Programming and Scripting
Hi All,
I have a XML file which is looks like as below. <<please see the attachment >>
<?xml version="1.0" encoding="UTF-8"?>
<esites>
<esite>
<name>XXX.com</name>
<storeId>10001</storeId>
<module>
... (4 Replies)
Discussion started by: Rajeev_hbk
4 Replies
6. Shell Programming and Scripting
I have two files:
file 1:
hello.com neo.com,japan.com,example.com
news.net xyz.com, telecom.net, highlands.net, software.com
example2.com earth.net, abc.gov.uk
file 2:
neo.com
example.com
abc.gov.uk
file 2 are the search keys to search in file 1 if any of the search key is... (3 Replies)
Discussion started by: csim_mohan
3 Replies
7. Shell Programming and Scripting
hi, i have a large file containing the detailed information of a bunch of keys like this:
JAT_0001 contig102_342_3_n2 contig102_342 atgcacgacta 30 50 20... (11 Replies)
Discussion started by: the_simpsons
11 Replies
8. Shell Programming and Scripting
I have an input file with
A=xyz
B=pqr
I would want the value in Second Field (xyz or pqr) updated with a value present in Shell Variable based on the value passed in the first field. (A or B )
while read line
do
NEW_VALUE = `some functionality done on $line`
If $line=First Field-... (1 Reply)
Discussion started by: infernalhell
1 Replies
9. UNIX for Beginners Questions & Answers
Hi All,
I need to find the count of key occurrence from one file corresponding to another file. Any help please. I am planning to read the CUST_ID in a while loop and do a grep , is there a way to do easier
CUST_ID
677582806078
687582821181
687582828910
687582834580
687582834849... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies
LEARN ABOUT PHP
xdiff_file_diff_binary
XDIFF_FILE_DIFF_BINARY(3) 1 XDIFF_FILE_DIFF_BINARY(3)
xdiff_file_diff_binary - Alias of xdiff_file_bdiff
SYNOPSIS
bool xdiff_file_diff_binary (string $old_file, string $new_file, string $dest)
DESCRIPTION
Makes a binary diff of two files and stores the result in a patch file. This function works with both text and binary files. Resulting
patch file can be later applied using xdiff_file_bpatch(3).
Starting with version 1.5.0 this function is an alias of xdiff_file_bdiff(3).
PARAMETERS
o $old_file
- Path to the first file. This file acts as "old" file.
o $new_file
- Path to the second file. This file acts as "new" file.
o $dest
- Path of the resulting patch file. Resulting file contains differences between "old" and "new" files. It is in binary format and
is human-unreadable.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
xdiff_file_diff_binary(3) example
The following code makes binary diff of two archives.
<?php
$old_version = 'my_script_1.0.tgz';
$new_version = 'my_script_1.1.tgz';
xdiff_file_diff_binary($old_version, $new_version, 'my_script.bdiff');
?>
NOTES
Note
Both files will be loaded into memory so ensure that your memory_limit is set high enough.
SEE ALSO
xdiff_file_bdiff(3), xdiff_file_bpatch(3).
PHP Documentation Group XDIFF_FILE_DIFF_BINARY(3)