Dec-21-2018, 07:40 PM
(Dec-21-2018, 11:02 AM)Larz60+ Wrote: try using sedthe idea is to lex or parse the file enough to distinguish parts like string literals, comments, and code and apply the search to the specified parts. so if i specify to search code and literals, it won't search the comments (even within the same line). sed does not have any capability to understand python source.
see: https://linuxcommando.blogspot.com/2008/...-file.html
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.