The Linux commands Grep commands for analyzing timing reports
- Brahmadev
- Sep 15, 2023
- 1 min read
Updated: Jul 19, 2024
Grep commands
Gives you the number of paths which has the same endpoints.
> grep "Endpoint: hierarchical_top_name\/instance_name\/cellname_\[0\]" filename_timing.rpt | wc
2. The below command is used to search for a specific pattern in files. -R in option allows for recursive search. You can use -i for disabling case sensitive.
> grep -R "Word" /path
3. To find specific different startpoints associated with the same endpoint. Basically,
- Z gives us a line before the pattern. -u gives us unique.
> grep "Endpoint: hierarchical_top_name\/instance_name\/cellname_\[0\]" -Z2 | grep "Startpoint:" -u
4. To find Startpoint except "some specific startpoint" associated with Endpoint. We use -v to exclude.
> grep "Endpoint: hierarchical_top_name\/instance_name\/cellname_\[0\]" -Z2 | grep "Startpoint:hierarchical_top_name\/instance_name\/cellname_\[4\] " -v
Comments