1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2024-12-22 06:38:07 +00:00
linux-insides/Misc
Sebastian Fricke 2cff4abf08 Gitbook Links: replace old links with new ones
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>
2020-05-31 17:23:17 +02:00
..
images More image fixes 2019-10-10 20:03:54 +02:00
linux-misc-1.md Gitbook Links: replace old links with new ones 2020-05-31 17:23:17 +02:00
linux-misc-2.md Update linux-misc-2.md 2019-10-02 00:19:01 +05:30
linux-misc-3.md Gitbook Links: replace old links with new ones 2020-05-31 17:23:17 +02:00
linux-misc-4.md Gitbook Links: replace old links with new ones 2020-05-31 17:23:17 +02:00
README.md fix a small spell problem 2015-08-17 16:41:29 +08:00

Misc

This chapter contains parts which are not directly related to the Linux kernel source code and implementation of different subsystems.