Search Results

Search: Posts Made By: Natalie
8,592
Posted By Natalie
Expr: non-integer argument
This is my code.... It works correct, but does not work with 4 and 5. My program is about finding average. so when i run 4 5 it gives me error "expr: non-integer argument".
But when i say sh average...
2,173
Posted By Natalie
sed extracting numbers
I have number 192.168.21.8.

I want to extract from this number with sed 21 and 8 to variables a and b. Any Ideas?

I did like 's/\(192.168.\)/ /' but its wrong :(
1,431
Posted By Natalie
+ [ -f /Users/Natalie/lastserial ] + sort...
+ [ -f /Users/Natalie/lastserial ]
+ sort /Users/Natalie/lastserial
+ tail -1
+ n=2013101001
makedns: 10: makedns: Bad substitution

---------- Post updated at 03:30 PM ---------- Previous...
1,431
Posted By Natalie
My code worked on a Mac, now it does not work in another computer
I guess Mac has default bash. Then I copy my code to another comp and run it...And it gives me an error like "bad substitution"....

How I can change my code??? Never had before this kind of...
6,309
Posted By Natalie
Why I have an error "makedns: 7: makedns: Bad...
Why I have an error "makedns: 7: makedns: Bad substitution
"????? How to fix it??
6,309
Posted By Natalie
Thank ya :) One more thing which is not relating...
Thank ya :) One more thing which is not relating to question: how delete threads or close here?! cant figure out :)
6,309
Posted By Natalie
I got the idea, thanks. You helped me a lot. But...
I got the idea, thanks. You helped me a lot. But my last numbers goes only until 09 and then it starts from 02 again. Why? it does not reach even 100 for incrementing days or months.... Sorry just I...
6,309
Posted By Natalie
So sorry..I faced to a little problem. Basically...
So sorry..I faced to a little problem. Basically everything is working...but 2013101008 is the maximum number which works in code... it says in error that value is too great for base ("error token is...
6,309
Posted By Natalie
Oh yeah thank u finally, I spend 2 hours for...
Oh yeah thank u finally, I spend 2 hours for finding out what is wrong....its so easy lol thanks :b::b::b:
6,309
Posted By Natalie
I found out what is probably wrong in my code....
I found out what is probably wrong in my code. When i assign n=2013101005 instead of path in my code it works. But when I replace by path n=/Users/Natalie/1/kuku.txt (echo $n gives me 2013101005)...
6,309
Posted By Natalie
I did. fourthoct 3oct 2oct 1oct gives nothing as...
I did. fourthoct 3oct 2oct 1oct gives nothing as well..... Even i said in my code that 1oct={n:8:2} etc.... I checked my n= sort /Users/yerlanrsaldin/1/kuku.txt | tail -1 it gives me 2013101005...but...
6,309
Posted By Natalie
I got confused totally...... My number is in file...
I got confused totally...... My number is in file kuku.txt
cat kuku.txt
->2013101005
According to my code it takes number from the file then compares with numbers and increment +1......But All I...
6,309
Posted By Natalie
Thanks. But I kind of do not know where to add...
Thanks. But I kind of do not know where to add this logic to my code.....Gives me error everywhere....
6,309
Posted By Natalie
Hello I am still working on my code..... The...
Hello I am still working on my code..... The issue I faced is that i have to have 00 01 02 03 04 05 06 07 08 09 010 011 ...099 100. But my numbers are 1 2 3 4 5 ...How I can change it to different...
6,309
Posted By Natalie
I am not fan of awk, also dont understand it. So...
I am not fan of awk, also dont understand it. So i will try to replace it with statements... Anyway, thank u so much:)
2,527
Posted By Natalie
I dont have awk and I am not fan of awk..Even now...
I dont have awk and I am not fan of awk..Even now I dont understand that equation u wrote to me...:D prefer loops and statements...More clear for me..
6,309
Posted By Natalie
so basically u divided my number into 4 parts...
so basically u divided my number into 4 parts right?! So I can increment independently, right? ;)
For incrementing I just add 1 to ${n:8:2} for example, right?
6,309
Posted By Natalie
Incrementing parts of ten digits number by parts
I have number in file which contains date and serial number:
2013101000.

The last two digits are serial number (00). So maximum of serial number is 100.

After reaching 100 it becomes 00 with...
2,527
Posted By Natalie
Thank you:)
Thank you:)
2,527
Posted By Natalie
Lol yes not fan :) what about echo 5 6 | sh...
Lol yes not fan :) what about echo 5 6 | sh my_code?
2,527
Posted By Natalie
is it possible to do it without awk?? Just to add...
is it possible to do it without awk?? Just to add smth to my my code?
2,527
Posted By Natalie
Sum of numbers in three or more files
I have files :
cat file1
15
88
44
667
33
4cat file2
445 66 77 3 56
Showing results 1 to 22 of 22

 
All times are GMT -4. The time now is 02:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy