10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need awk script to generate part number sequencing based on data in multiple columns like below
Col A|Col B|Col C|
And out put should be like
1by (6 Replies)
Discussion started by: aramacha
2. UNIX for Advanced & Expert Users
I have a column which have 7200 numbers and I am deciding to pick up 1440 numbers randomly without any reputation? Could any one let me know which script in unix will be work for my case?
Sajjad (17 Replies)
Discussion started by: sajmar
3. Shell Programming and Scripting
Need to use dd to generate a large file from a sample file of random data. This is because I don't have /dev/urandom.
I create a named pipe then:
dd if=mynamed.fifo do=myfile.fifo bs=1024 count=1024
but when I cat a file to the fifo that's 1024 random bytes:
cat randomfile.txt >... (7 Replies)
Discussion started by: Devyn
4. Shell Programming and Scripting
Hi Unix Gurus,
I have a requirement to generate positive random 16 and 13 digit numbers.
Here is the script I have so far.....
let "number %= 10000000000000";
But sometimes it is generating negative numbers and also 15 digit... (8 Replies)
Discussion started by: scorpioraghu
I am writing a c program that generates a two dimensional array to make matrix and a vector of random numbers and perform multiplication. I can't figure out whats wrong with my code. It generates a matrix of random numbers but all the numbers in the vector array is same and so is the... (2 Replies)
Discussion started by: saboture88
I saw this formula to generate random number between two specified values in shell script.the following.
Give a example in book.
Generate random number between 6 and 30.like this.
But I have a... (1 Reply)
Discussion started by: luoluo
7. Shell Programming and Scripting
I'm learning to script in the ksh environment on a Solaris Box.
I have 10 files in a directory that I need to pass, as input to a batch job one by one. lets say, the files are named as follows:
abcd.txt ; efgh.bat ; wxyz.temp etc. (random filenames with varied extensions ).... (1 Reply)
Discussion started by: novice82
8. Shell Programming and Scripting
I need to generate 4 digit random no using only shell script.
Please help in this ASAP.
Thanks in advance...
sridhar. (1 Reply)
Discussion started by: sridhusha
9. Shell Programming and Scripting
Can someone help me generate a random password which will be 7 characters long which contains alpha-numeric characters using shell script.
I am looking to store the output of the script that generates the password to a variable within a script and use it as the password.
... (5 Replies)
Discussion started by: chiru_h
How to generate a random integer with specific range(for example, from 1 to 1000)?
Also, how to convert a floating point number into a integer? (2 Replies)
Discussion started by: MacMonster