Hi,
1. How do I grep for and print only the line
Actual Time : 130 MHz
if my file contains the following lines:
Required Time : 8.0 ns
Actual Time : 7.126 ns
Required Time : 150 MHz
Actual Time : 130 MHz
2. My second file has the following line:
Requested Estimated Requested Estimated Clock Clock
clk_core 100.0 MHz 28.1 MHz 10.000 35.545 -25.545 declared default_clkgroup
I grep for 'Estimated' and 'clkgroup' in this file to get these lines.
But, how do I print only a part of these lines as shown below:
Requested Estimated
clk_core 100.0 MHz 28.1 MHz
Note that none of the numerical values are constants here.
Thanks for your time.
RV
1. How do I grep for and print only the line
Actual Time : 130 MHz
if my file contains the following lines:
Required Time : 8.0 ns
Actual Time : 7.126 ns
Required Time : 150 MHz
Actual Time : 130 MHz
2. My second file has the following line:
Requested Estimated Requested Estimated Clock Clock
clk_core 100.0 MHz 28.1 MHz 10.000 35.545 -25.545 declared default_clkgroup
I grep for 'Estimated' and 'clkgroup' in this file to get these lines.
But, how do I print only a part of these lines as shown below:
Requested Estimated
clk_core 100.0 MHz 28.1 MHz
Note that none of the numerical values are constants here.
Thanks for your time.
RV