From f9dfdd0b204159a1ebf33cc7872429d0490407da Mon Sep 17 00:00:00 2001 From: blue Date: Tue, 30 Apr 2024 02:30:25 +0000 Subject: [PATCH] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 09fb437..a6fedf7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Overview and Backstory - I bought a copy of a website, `newadvent.org`, which is full of great stuff. + - I'm not allowed to share the website. Go buy a copy or use https://newadvent.org/ - One thing I wanted to have with the website was my own search function. - New Advent uses google as a search engine on their website. I don't like that. - I discovered this project: https://pagefind.app/ @@ -31,7 +32,7 @@ The goal of Pagefind is that websites with tens of thousands of pages should be - I realized I had to use `sed` and some other shit. Here are the scripts I used. **Script 1** -- The script below finds `htm` EXACTLY and replaces it with `html`. +- The script below finds `.htm` EXACTLY and replaces it with `.html`. ``` #! /bin/bash @@ -39,7 +40,7 @@ find /etc/workspace/newadvent/ -type f -exec sed -i -e 's/\bhtm\b/html/g' {} \; ``` **Script 2** -- The script below finds all file extensions named `.htm` and changes them to`.html`. +- The script below finds all file extensions named `.htm` and changes them to `.html`. - This has to be done in the directory of choice where all of the `*.htm` files are named. - You have to copy this script in each directory. There are more elegant ways of doing this but I dont care.