Search Results

Search: Posts Made By: Giordano Bruno
2,081
Posted By joeyg
Try the following
> a=0.001
> b=0.5/$a
> echo $b
0.5/0.001
> c=`echo 0.5 / $a | bc`
> echo $c
500
>
2,263
Posted By zaxxon
Use printf instead of echo. You can use fixed...
Use printf instead of echo. You can use fixed width for columns and stuff like left-bound or right-bound with it etc.
Forum: Programming 04-09-2013
2,433
Posted By Corona688
without knowing what you did with grep it's hard...
without knowing what you did with grep it's hard to see what to do with C/C++...

In its simplest form you can do this to print matching lines:

#include <stdlib.h>
#include <string.h>

int...
1,489
Posted By Tytalus
regexp like: [0-9]\.[0-9]\{4\}e[+-][0-9] ...
regexp like:


[0-9]\.[0-9]\{4\}e[+-][0-9]


should work
Showing results 1 to 4 of 4

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