10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have a multicolumn text file with header in the first row like this
The headers are stored in an array called . which contains I want to search for each elements of this array from that multicolumn text file. And I am using this awk approach
for ii in ${hdr}
do
gawk -vcol="$ii" -F... (1 Reply)
Discussion started by: Atta
1 Replies
2. Shell Programming and Scripting
Hi,
I have a file pk.txt which has table related data in following format
TableName | PK
Employee | id
Contact|name,phone,country
I have another file desc.txt which lists datatype of each field like this:
Table|Field|Type
Employee|id|int
Contact|name|string
Contact|country|string... (7 Replies)
Discussion started by: wahi80
7 Replies
3. Shell Programming and Scripting
Greetings Experts,
I have an excel file and I am unable to read it directly into awk (contains , " etc); So, I cleansed and copied the data into notepad.
I need to generate a script that generates the SQL.
Requirement:
1. Filter and select only the data that has the "mapping" as "direct"... (4 Replies)
Discussion started by: chill3chee
4 Replies
4. AIX
Hello,
I have created a script to generate a random password on Linux/Solaris, but I simply cannot use it on my AIX VMs since Bash isn't installed on them.
I need a password that is randomly created with the following... (12 Replies)
Discussion started by: gfroute
12 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I got big problem.
a line contains like this:
Hell "A,B,C", how to delete A or B or C by using sed or other tools?
I do not have any idea.
Many thanks. (2 Replies)
Discussion started by: lemon_06
2 Replies
6. Shell Programming and Scripting
Hello,
I need to take a random word from a flat text file with words in it seperated by spaces.
The code I am using, always gives me the first word. Can anyone please shed some light on this. Here's my code.
Thanks
echo table roof ceiling jar computer monitor keyboard carpet >... (5 Replies)
Discussion started by: Freakhan
5 Replies
7. Shell Programming and Scripting
i tried to use $random function in unix
i simply typed print $random at shell and it returnted no value
is there any function in korn shell that i can use to generate random number
help is appreciated (2 Replies)
Discussion started by: er_zeeshan05
2 Replies
8. Shell Programming and Scripting
Hi
I have the below code
MAXCOUNT=10
count=1
echo
echo "$MAXCOUNT random numbers:"
echo "-----------------"
while # Generate 10 ($MAXCOUNT) random integers.
do
number=$ + 1 ]
"echo $number"
let "count += 1" # Increment count.
done
But aftre executing this
... (8 Replies)
Discussion started by: lalitka
8 Replies
9. UNIX for Dummies Questions & Answers
I need to generate a random number in ksh everytime I run the script ,the range should be from 100 to 24800,I could use $RANDOM but I seem to have no control over the range of numbers ,could you please suggest some way I could implement this .Thanks.
Mervin (2 Replies)
Discussion started by: mervin2006
2 Replies
10. Programming
Hi...How can I generate random numbers between a given range ...preferably between 1 and 100...in UNIX C programming...?
I tried out functions like rand(),drand48() etc but didnt get satisfactory results...
Thanks a lot in advance.......... (1 Reply)
Discussion started by: tej.buch
1 Replies