mirror of
https://github.com/0xAX/linux-insides.git
synced 2024-12-22 06:38:07 +00:00
2cff4abf08
The old links didn't point to valid locations. Replace the old links with the new links and test those changes with a small script: https://github.com/initBasti/markdown_link_check . ______________________________________________________________ In order to find and replace the links, I used the following commands: grep -rwohP '.' -e "\(https\:\/\/0xax.gitbooks.io\/\S*\)" > links.txt (Find all links recursivly in the project directories and print out the only the matches links) Within links.txt: Remove the '(' & ')' => :%s/\(//g and :%s/\)//g Remove duplicates => :sort u Test if the links work with: python3 md_link_check.py --pattern 0xax.gitbook --output-file bad.txt (https://github.com/initBasti/markdown_link_check) Create replace commands: :%s/.*/grep -rl & '.' | xargs sed -i 's#&##g' Enter replacement URL between the 2nd & 3rd '#' Execute commands: :w !sh Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com> |
||
---|---|---|
.. | ||
get_all_links.py | ||
latex.sh | ||
LinuxKernelInsides.pdf | ||
README.md |
Scripts
Description
get_all_links.py
: justify one link is live or dead with network connection
latex.sh
: a script for converting Markdown files in each of the subdirectories into a unified PDF typeset in LaTeX
Usage
get_all_links.py
:
./get_all_links.py ../
latex.sh
:
./latex.sh