I have a txt file with a bunch of URLs like:
http://url1.com/folder1/folder2
http://url3.com/folder1/folder2
http://url2.com/folder1/folder2
Im looking for a script that will delete everything after “.com”. Seems there would be a simple applescript for this, but I cant seem to find what I am looking for. Any ideas?
building on cbz answer you could run his command through applescript with some manipulation