Search Results

Search: Posts Made By: Giordano Bruno
Forum: Programming 04-09-2013
2,429
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...
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.
2,077
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
>
1,484
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 06:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy