Update README.md
This commit is contained in:
parent
1e36382798
commit
f9dfdd0b20
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue