9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi ALL,
I am having semi column separated file as below. I am having negative values for the records starting with 11095. How can I convert that positive number
I tried this below seems not working
sed 's/ \(*\)$/ -\1/;t;s/\(.*\)-/\1/ myfile
myfile... (6 Replies)
Discussion started by: arunkumar_mca
6 Replies
2. Programming
Is there a function to convert number (unsigned int for this example) to binary? I could not find a simple one thru google.
While I was learning bloom filter with the example, I was wondering if anybody can help me to
1) display the real bits vector for the bloomfilter;
2) if dataset is very... (11 Replies)
Discussion started by: yifangt
11 Replies
3. Programming
I have an assignment in which a character is the input of which some bits(from a position to certain position) are to be inverted (1's complement) and then the resultant character is to be returned....for example
unsigned char x = J from p = 3 to offset n = 5
01001010 inverted to... (1 Reply)
Discussion started by: ezee
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am having a problem in converting a string to number so I can preform arithmetic operations.
timeTot=0
timeTmp=$(cat idsOutput | grep 'Run time' | cut -c 36-39)
timeTot=$ #This is line 28
echo "total RunTime=" $timeTot
this is the error msg:
./ids2.sh: line 28: 0+1.35: syntax... (8 Replies)
Discussion started by: turki_00
8 Replies
5. UNIX for Dummies Questions & Answers
Hi ,
I have to install Oracle Enterprise linux 64bit version on my machine.
How would i determine whether my system is compatible for 64 bit version.
What is difference between 64 bit version and 32 bit version?
I heard that 64 bit version are suitable for machine with ram more than 4 gb... (5 Replies)
Discussion started by: pinga123
5 Replies
6. HP-UX
Dear All,
I am new on Tru 64 bit Unix platform. I have a database server "HP AlphaServer ES45" version p5.1 of Tru Ux 64 bit installed. I have 4 hard drives in this system (1,2,3,4). My 4th hard drive is damaged which contain Oracle database files including partitions on 4th drives... (2 Replies)
Discussion started by: hellozishan
2 Replies
7. Shell Programming and Scripting
Hi All,
I am writing a shell script in which I want to convert a number like :
Suppose the number is "98487657" and we have to convert it to "98000000", what I want to do is to retain first 2 digits and convert all remaining digits to "0".
Number could be of any length (length... (4 Replies)
Discussion started by: amitanshu.verma
4 Replies
8. Shell Programming and Scripting
I have written a script to compare the values of string (which actually are numbers) but it is not giving the expected output. Please suggest for the script.
#!/usr/bin/ksh
sysdate=20071009
echo $sysdate
currfile=20071008
echo $currfile
if ; then
echo "Equal"
else
echo "Not... (2 Replies)
Discussion started by: raman1605
2 Replies
9. Shell Programming and Scripting
I've searched the forum and google, but can't see an answer to this simple problem. Here's my small test script:
#!/bin/csh
echo "enter a number:"
read num
echo "you entered $num"
set num = `expr $num + 1`
echo new value is $num
can someone show me how to do this calculation? note that... (4 Replies)
Discussion started by: tpatput
4 Replies