08-30-2007
Here is the initial move on your requirement:
>>1. Generate some random numbers of a fixed length.
i=00000000
echo $RANDOM$i | cut -c 1-8
the above serves to generate random numbers for more than 50 million records;again not sure how frequently a number repeats!!
not clear about the second requirement. be specific please...
-ilan
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How to edit large file using vi where you can't increase /usr/var/tmp anymore? (3 Replies)
Discussion started by: nazri
3 Replies
2. Shell Programming and Scripting
I am trying to edit a file that has 33k+ records. In this file I need to edit each record that has a 'Y' in the 107th position and change the 10 fields before the 'Y' to blanks. Not all records have a 'Y' in the 107th field.
ex:
... (8 Replies)
Discussion started by: jxh461
8 Replies
3. Shell Programming and Scripting
hi All,
Plz let me know how to edit a file with 2000000 records.
each record contains with 40 field seperated by |.
i want modify 455487 record, but i am uable to edit this large file using vi editor in unix.
plz let me know how to modify this file.
Thanks in advance.
-Bali Reddy (3 Replies)
Discussion started by: balireddy_77
3 Replies
4. Shell Programming and Scripting
Hi,
I need to make a script to edit a file. File is a large file in below format
Version: 2008120101
;$INCLUDE ./abc/xyz/Delhi
;$INCLUDE ./abc/xyz/London
$INCLUDE ./abc/xyz/New York
First line in the file is version number which is in year,month,date and serial number format. Each... (5 Replies)
Discussion started by: makkar4u
5 Replies
5. Shell Programming and Scripting
Hello,
I am attempting to create a command that I can eventually put into a loop so I can edit 1file on many servers. I would like to edit the file in place with sed -i. If not I will take any suggestions on how to use a temp file. I need to remove a email address from the configuration file... (4 Replies)
Discussion started by: abacus
4 Replies
6. Solaris
Dear Gurus,
I need you to advice or suggestion about the best solution to copy data around 200-300G from serverA(location A) to serverB(location B). Normally, I will share folder and then copy but it takes too long time(about 2 days).
Do you have any suggestion or which way should be... (9 Replies)
Discussion started by: unitipon
9 Replies
7. Shell Programming and Scripting
Hello, I am using tcsh on AIX.
I would like to write a script that does the following:
1. given an inode, how do I find exactly the name of the file?
I know I could do this using ls -i | grep <inode>
but it returns: <inode> <filename>. I need some string manipulation or something to... (1 Reply)
Discussion started by: lastZenMaster
1 Replies
8. Shell Programming and Scripting
Hi,
I lack the utter fundamentals on how to craft an awk script.
I have hundreds of text files that were mangled by .doc format so all the lines are broken up so I need to join all of the lines of text into a single line. Normally I use vim command "ggVGJ" to join all lines but with so many... (3 Replies)
Discussion started by: n00ti
3 Replies
9. Shell Programming and Scripting
Whenever I am trying to edit a file in unix with vi editor, I am getting the following error:
<data>
:Tmp file too large
Is there any way that I can edit the file other than vi. Any help is really appreciated.
Thanks (10 Replies)
Discussion started by: bobby1015
10 Replies
10. Shell Programming and Scripting
Hi All,
Daily I am getting the updated file.
I have to search for this file in all directories and sub directories.
If the file existed in a particular directory then move this updated file to that particular directory.
If the file is not existed in any of the directories then place this... (4 Replies)
Discussion started by: ROCK_PLSQL
4 Replies
LEARN ABOUT SUSE
apache::session::generate::md5
Session::Generate::MD5(3) User Contributed Perl Documentation Session::Generate::MD5(3)
NAME
Apache::Session::Generate::MD5 - Use MD5 to create random object IDs
SYNOPSIS
use Apache::Session::Generate::MD5;
$id = Apache::Session::Generate::MD5::generate();
DESCRIPTION
This module fulfills the ID generation interface of Apache::Session. The IDs are generated using a two-round MD5 of a random number, the
time since the epoch, the process ID, and the address of an anonymous hash. The resultant ID number is highly entropic on Linux and other
platforms that have good random number generators. You are encouraged to investigate the quality of your system's random number generator
if you are using the generated ID numbers in a secure environment.
This module can also examine session IDs to ensure that they are, indeed, session ID numbers and not evil attacks. The reader is
encouraged to consider the effect of bogus session ID numbers in a system which uses these ID numbers to access disks and databases.
This modules takes one argument in the usual Apache::Session style. The argument is IDLength, and the value, between 0 and 32, tells this
module where to truncate the session ID. Without this argument, the session ID will be 32 hexadecimal characters long, equivalent to a
128-bit key.
AUTHOR
This module was written by Jeffrey William Baker <jwbaker@acm.org>.
SEE ALSO
Apache::Session
perl v5.12.1 2008-06-04 Session::Generate::MD5(3)