bash-hackers-wiki/docs/dict
Hanson Char e966036f05 Fix hyperlinks of markdown pages at depth 2
find docs/ -depth 2  -name '*.md' | xargs grep '(.*/' -l | \
  xargs -I{} \
  sed -i '' \
  -e 's%(/\([^/#).][^/#).]*\)/\([^/#).][^/#).]*\)\(.md\)\{0\})%(../\1/\2.md)%g' \
  -e 's%(/\([^/#).][^/#).]*\)/\([^/#).][^/#).]*\)#\([0-9a-zA-Z_-][0-9a-zA-Z_-]*\))%(../\1/\2.md#\3)%g' \
  -e 's%(/\([^/#).][^/#).]*\)/\([^/#).][^/#).]*\)/\([^/#).][^/#).]*\)\(.md\)\{0\})%(../\1/\2/\3.md)%g' \
  -e 's%(/\([^/#).][^/#).]*\)/\([^/#).][^/#).]*\)/\([^/#).][^/#).]*\)#\([0-9a-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:10 -08:00
..
directory.md Fix hyperlinks of markdown pages at depth 2 2024-01-28 17:26:10 -08:00
end_of_options.md Fix hyperlinks of markdown pages at depth 2 2024-01-28 17:26:10 -08:00
exit_status.md Convert files under dict to Markdown 2023-07-05 11:06:16 +02:00
file.md Fix hyperlinks of markdown pages at depth 2 2024-01-28 17:26:10 -08:00
filetimes.md Convert files under dict to Markdown 2023-07-05 11:06:16 +02:00
globbing.md Fix hyperlinks of markdown pages at depth 2 2024-01-28 17:26:10 -08:00
hardlink.md Fix hyperlinks of markdown pages at depth 2 2024-01-28 17:26:10 -08:00
interpreter_directive.md Convert files under dict to Markdown 2023-07-05 11:06:16 +02:00
parameter.md Fix hyperlinks of markdown pages at depth 2 2024-01-28 17:26:10 -08:00
posix.md Fix hyperlinks of markdown pages at depth 2 2024-01-28 17:26:10 -08:00
shell.md Convert files under dict to Markdown 2023-07-05 11:06:16 +02:00
special_file.md Fix hyperlinks of markdown pages at depth 2 2024-01-28 17:26:10 -08:00
symlink.md Fix hyperlinks of markdown pages at depth 2 2024-01-28 17:26:10 -08:00