10 More Discussions You Might Find Interesting
1. Programming
Hi All,
I am having a strange issue. Below is the code snippet. If I print fraction * (double)::pow((double)10,scalingFactor) which is a double I am getting 154 when I type cast that to int as (int)( ((fraction) * ((double)::pow((double)10,scalingFactor)))) it is becoming 153. Not sure why... (0 Replies)
Discussion started by: arunkumar_mca
0 Replies
2. Shell Programming and Scripting
HI Guys,
I using below command to zip data but in zip file i have entire path of source.
zip $HOME/EM/ZIPData/All.tar.gz /vr/rt/on/mg/set/XM/Swor/xt/0300*.*
In Zip file i have entire path vr/rt/on/mg/set/XM/Swor/xt/
I just want file data zip in may target location (2 Replies)
Discussion started by: pareshkp
2 Replies
3. Solaris
Hi Friends,
I have data like below
t064266
I want output into this format
t064266
Data are space delimited and i want parse third column data.
Thanks (9 Replies)
Discussion started by: Jagaat
9 Replies
4. UNIX for Dummies Questions & Answers
Dear all,
I 'd like to ask a question. I have two datasets: a.txt (only has one filed, call 'SNP'), b.txt( has thousands of fields, 1st field call 'SNP').
a.txt:
rs9527
rs318567
rs12376
...
b.txt:
rs167893 1 2 0 2 1 2 ...
rs318567 2 0 2 1 2 0 ...
rs12376 0 2 0 2 1 2 ...
I... (2 Replies)
Discussion started by: forevertl
2 Replies
5. Shell Programming and Scripting
hi guys,
i m new to shell script..
i dont know how to type cast string into integers and i mention my problem below..
date="21091988"
month=$((${date:2:2})) # extract the month from previous date variable
temp=$(($month*23))
when i am trying to calculate the temp value i got the... (5 Replies)
Discussion started by: raadhaakrishnan
5 Replies
6. Programming
Is it permitted to type-cast a member variable passed in as a parameter in a member const method ..
I am doing something like :
in a
return-type method () const {
variable other = long(member variable)
}
this other assigned variable is not updating and I wonder if type-casting in such... (1 Reply)
Discussion started by: shriyer123
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a problem on data sorting, example my file as below:
123 123/789 aaa bbb ccc ddd (adf)
112 112/123 aaa bbb ccc (ade)
102 1a3/7g9 (adf)03
110 12b/129 aaa bbb ccc ddd fff(a8f)03
117 42f/8c9 aaa bbb ccc ddd (adf)
142 120/tyu fff... (7 Replies)
Discussion started by: 793589
7 Replies
8. UNIX for Advanced & Expert Users
I am having a doubt with type casting in C. Very often in network programming, we have something like this:
char *data = ...;
struct iphdr *ip = (struct iphdr *) data;
where iphdr is define in netinet/ip.h.
Let us say that the size of the content of held by 'data' is much more than... (1 Reply)
Discussion started by: radiatejava
1 Replies
9. Shell Programming and Scripting
Hi I'm trying to write a script which takes an integer as input and checks for files with size > input and displays it on screen.
The code I've tried :
echo 'Enter the min file size expected'
read filesize
du -ah <folder name> | awk -F: '$1>int(filesize) {print $1,$2)' is always... (28 Replies)
Discussion started by: vivek.bharadwaj
28 Replies
10. Shell Programming and Scripting
Hi everyone,
I was wondering how i could cast a floating value to an integer in csh
Thanks (0 Replies)
Discussion started by: ROOZ
0 Replies