9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am using the below to random generate a password but I need to have 2 numeric characters and 6 alphabetic chars
head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8 ; echo ''
6USUvqRB
------ Post updated at 04:43 PM ------
Any Help folks - Can the output be passed onto a sed command to... (9 Replies)
Discussion started by: infernalhell
9 Replies
2. Shell Programming and Scripting
Dear UNIX Friends,
I was wondering if there is a random RGB color generator or any function in any unix platforms.
Please share your ideas.
Thanks (2 Replies)
Discussion started by: jacobs.smith
2 Replies
3. Shell Programming and Scripting
I have been (unsuccessfully) trying to write a script that will do the following:
for each line of an input file (that contains IP address),
the script searches the target file for any lines containing said IP address
if it finds a line (or lines) it writes the line(s) to output
if the line is... (4 Replies)
Discussion started by: ddirc
4 Replies
4. Shell Programming and Scripting
I need a script to process the (space-separate) values for each line as seen in the below input file and then output the data into an output file as follows. We have been unable to create this using typical bash scripting and cold not find anything out on the internet similar to what we are trying... (3 Replies)
Discussion started by: ddirc
3 Replies
5. UNIX for Dummies Questions & Answers
There was an upload recently on generating a pseudo-random file when /dev/random does NOT exist.
This does not need /dev/random, /dev/urandom or $RANDOM either...
(I assume $RANDOM relies on the /dev/random device in some way.)
This code uses hexdump just because I like hexdump for ease of... (2 Replies)
Discussion started by: wisecracker
2 Replies
6. Ubuntu
Hi
I am new to expect. Please if any one can help on my issue its really appreciable. here is my issue:
I want expect script for random passwords and random commands generation.
please can anyone help me?
Many Thanks in advance (0 Replies)
Discussion started by: vanid
0 Replies
7. Shell Programming and Scripting
Hello,
in my shell script i have some multi-line text in a variable $TEMP - f.e.
blablahblah
blah blah
bla TARGET hgloglo
And i need to replace TARGET with text from another variable ($REPLACE), which is containing some text with nasty characters (\n, ", :, etc.) And stuff the altered text... (2 Replies)
Discussion started by: MilanCZ
2 Replies
8. Shell Programming and Scripting
Hi,
I need to create a table with random sentences. I need lines that are upto 1000 characters in lenght. I need a random sentence generator that will create sentences and output it to a text file. The sentences should be of lenght varying from 1 to 1000.
Does anyone know how this can be... (7 Replies)
Discussion started by: kaushys
7 Replies
9. Solaris
I am trying to find a way to generate random numbers within a shell script.
Does Solaris have a utility that will generate random numbers?
Thanks in advance.
B (3 Replies)
Discussion started by: one_ring99
3 Replies