bash-hackers-wiki/docs
Hanson Char b75c3a588b Fix hyperlinks of markdown pages at depth 3
find docs/ -depth 3  -name '*.md' | xargs grep '(.*/' -l | \
  xargs -I{} \
  sed -i '' \
  -e 's%(/\([^/#).][^/#).]*\)/\([^/#).][^/#).]*\)\(.md\)\{0\})%(../../\1/\2.md)%g' \
  -e 's%(/\([^/#).][^/#).]*\)/\([^/#).][^/#).]*\)#\([a-zA-Z_-][0-9a-zA-Z_-]*\))%(../../\1/\2.md#\3)%g' \
  -e 's%(/\([^/#).][^/#).]*\)/\([^/#).][^/#).]*\)/\([^/#).][^/#).]*\)\(.md\)\{0\})%(../../\1/\2/\3.md)%g' \
  -e 's%(/\([^/#).][^/#).]*\)/\([^/#).][^/#).]*\)/\([^/#).][^/#).]*\)#\([a-zA-Z_-][0-9a-zA-Z_-]*\))%(../../\1/\2/\3.md#\4)%g' \
  -e 's%](\([^:.>)#][^:.>)#]*\))%](../../\1.md)%g' \
  -e 's%](\([^:.>)#][^:.>)#]*\)#\([^:.>)#][^:.>)#]*\))%](../../\1.md#\2)%g' \
  {}

Related to https://github.com/flokoe/bash-hackers-wiki/issues/10
2024-01-28 17:26:57 -08:00
..
commands Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
dict Convert files under dict to Markdown 2023-07-05 11:06:16 +02:00
howto Convert howto pages to Markdown 2023-07-05 11:10:03 +02:00
internals Convert internals to Markdown 2023-07-05 11:11:49 +02:00
misc Convert misc pages to Markdown 2023-07-05 11:26:49 +02:00
scripting Convert scripting pages to Markdown 2023-07-05 11:31:29 +02:00
snipplets Convert snipplets to Markdown 2023-07-05 11:33:45 +02:00
syntax Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
bash4.md Fix minor formatting for Markdown 2023-07-04 13:11:57 +02:00
index.md Fix hyperlinks of docs/index.md so that it would work with markdown 2024-01-27 17:36:56 -08:00
tags.md Add tags overview 2023-07-04 13:54:36 +02:00