9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i have file (my_file.txt) that looks like this:
000000000000010000
000000000000010000
000000000000005000
000000000000005000
000000000000005000
000000000000005000
000000000000005000
000000000000005000
000000000000005000
000000000000005000
all said and one, it should look... (11 Replies)
Discussion started by: lawsongeek
11 Replies
2. Programming
I have
int miles, yards;
float kilometers;
float kilometers2;
miles = 26;
yards = 385;
kilometers = 1.609 * (miles + yards / 1760.0);
where int/float remains a float. How ever if I change it to
kilometers = 1.609 * (miles + yards / 1760);
... (7 Replies)
Discussion started by: Fingerz
7 Replies
3. Shell Programming and Scripting
Hi I have this list
592;1;Z:\WB\DOCS;/FS3_100G/FILER112/BU/MPS/DOCS;;;;\\FILER112\BUMPS-DOCS\;580,116,544,878 Bytes;656,561 ;77,560
592;2;Z:\WB\FOCUS;/FS3_100G/FILER112/BU/MPS/FOCUS;;;;\\FILER112\BUMPS-FOCUS\;172,430 Bytes;6 ;0 ... (12 Replies)
Discussion started by: nakaedu
12 Replies
4. Shell Programming and Scripting
I am trying to do some math, so that I can compare the average of six numbers to a variable.
Here is what it looks like (note that when I divide really big numbers, it isn't a real number):
$ tail -n 6 named.stats | awk -F\, '{print$1}'
1141804
1140566
1139429
1134210
1084682
895045... (3 Replies)
Discussion started by: brianjb
3 Replies
5. Shell Programming and Scripting
Hi, this is my first post so bare with me
I have a file which I want to count the amounts of the same line in the file and display by using a shell script
for example
file1
apple
apple
apple.
bananasi would like the output to be
apple 2
apple. 1
bananas 1however, i need this... (2 Replies)
Discussion started by: legolad
2 Replies
6. Shell Programming and Scripting
$ x=1
$ y=1.5
$ z=$((x*y))
bash: 1.5: syntax error: invalid arithmetic operator (error token is ".5")
What's wrong? (2 Replies)
Discussion started by: rockbike
2 Replies
7. Shell Programming and Scripting
Hello
I want to run this test:
If wordcount of a command is 0 then echo XXXX else echo YYYYY
if ; then echo "all devices are created on RAID10"; else echo "Some devices are created on non-RAID10"; fi
I receive this message
-bash: command substitution: line 1: syntax error near... (3 Replies)
Discussion started by: melanie_pfefer
3 Replies
8. Programming
Hi, I got an easy problem for you but really difficult for me 'cause I am pretty new to this field
I got header file <math.h> included in my .c file , then I write the code as below:
k = sqrt(i); /* both variables k and i are int */
then I cc temp.c
it says like this
undefined... (4 Replies)
Discussion started by: blf0
4 Replies
9. Programming
Alright, umm i cant get this to work.
im looking at some example and a book i have.
when i try to compile my program i get an error message.
ld: 0711-317 ERROR: Undefined symbol: .sqrt
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. I did #include<math.h> after my... (2 Replies)
Discussion started by: primal
2 Replies