urlscan icon indicating copy to clipboard operation
urlscan copied to clipboard

question - how to display line number

Open cjbd opened this issue 3 years ago • 2 comments

hello, i'm new to urlscan, this tool is pretty cool, i'm using it to find all urls in source code, the output is great, but it would be even better to print line number along with url found, how can i do that? thank you!

$ urlscan -n /path/to/mycode.cc
crbug.com
http://crbug.com/898555)
https://security.googleblog.com/2017/09/chromes-plan-to-distrust-symantec.html
http://crbug.com/921750)

cjbd avatar Mar 07 '21 11:03 cjbd

Nothing comes to mind immediately. I thought maybe some combination of --regex and --run, but I think urlscan would have to track the line numbers. This would take adding an option to list the urls by line number instead of just numerically. PR's welcome!

firecat53 avatar Mar 08 '21 18:03 firecat53