![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to get number of pages in a PDF file | prvnrk | Shell Programming and Scripting | 8 | 04-21-2009 05:14 PM |
| Finding a specific UID on a site with hundreads of users. | maxalarie | AIX | 1 | 03-03-2008 01:17 PM |
| Finding a specific pattern from thousands of files ???? | aarora_98 | Shell Programming and Scripting | 6 | 02-17-2006 08:28 AM |
| finding specific values in a within a file | Gerry405 | UNIX for Dummies Questions & Answers | 3 | 11-21-2005 11:37 AM |
| Split text file by pages | ranri | UNIX for Dummies Questions & Answers | 2 | 06-01-2001 03:43 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Finding what pages link to a specific file
First time poster (so please excuse me in advance)
![]() I have a webserver running linux, apache, etc. I have a list of HTML webpages that I want to delete because I think they are old. While I could delete them then check for broken links, I'd like to be more pro-active. I want to write a shell script that will search all the pages in my site for links to the pages in my list. Let's say I have a potential file to delete at www.fake-url.com/foo/bar/index.html I can't just grep for it because the page can be written within pages in a number of way: 1) It could be a full or root relative (that's easy enough to search for) 2) It could be a relative link! I can't grep for "index.html" because there are multiple index pages. I've written some shell scripts, but searching for relative links like this seems overwhelming. Hopefully my question makes some sense and I'm posting it in an appropriate place. I was thinking of writing my own script, but you know of an existing script or program that does this it would certainly be appreciated! |
![]() |
| Bookmarks |
| Tags |
| unix pages links |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|