Skip to content
Advertisement

grep all .js urls from text file

There is a File a.txt

JavaScript

I want to grep all .js extension URLs so I tried this but it not showing https://site.tld/b.js?query=1

JavaScript

And when I tried this, It also select js name from anywhere

JavaScript

Thanks in advance

Advertisement

Answer

Just escape the . with a

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement