دنبال کننده ها

۱۳۹۶ اسفند ۱۲, شنبه

grep - How to hightlight text search results like google?

[ad_1]



The following is one way to hightlight grep results with n context characters. And each match is broken into a line.



https://unix.stackexchange.com/questions/163726/limit-grep-context-to-n-characters-on-line



Google is more intelligent, such that it shows the match separated by .... Also, sometimes it respect sentence boundary. Is there any code that grep text by hightlight matches similar to the google way?




[ad_2]

لینک منبع