Search Results

Search: Posts Made By: Asif Siddique
5,023
Posted By RudiC
OK, mayhap your sed doesn't like the ORed regex....
OK, mayhap your sed doesn't like the ORed regex. Try:sed 's:^[^-+0-9]*::g; s:^.*)::' file
11 +/- 1.02651
11
9.84211
11
0.202636
11
5,023
Posted By hanson44
Here's a possible way: $ cat input.txt ...
Here's a possible way:

$ cat input.txt
<INFO> HypoTestTool: >>> Done running HypoTestInverter on the workspace combined
<INFO> HypoTestTool: The computed upper limit is: 11 +/- 1.02651
<INFO>...
5,023
Posted By Yoda
grep -o '[^+-][0-9]\+[.]*[0-9]*' input.txt
grep -o '[^+-][0-9]\+[.]*[0-9]*' input.txt
13,320
Posted By RudiC
Please use code tags as required by forum rules! ...
Please use code tags as required by forum rules!

Unfortunately, you do not mention the shell that you are using. In bash, this should do:$ while read X Y Z; do a[++i]=$X; b[i]=$Y; c[i]=$Z; done <...
Showing results 1 to 4 of 4

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