bash-hackers-wiki/docs/commands/builtin
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
..
caller.md Convert all builtin commands to Markdown 2023-07-05 10:53:12 +02:00
cd.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
declare.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
echo.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
eval.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
exec.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
exit.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
export.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
kill.md Convert all builtin commands to Markdown 2023-07-05 10:53:12 +02:00
let.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
local.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
mapfile.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
printf.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
read.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
readonly.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
return.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
set.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
shift.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
shopt.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
trap.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
unset.md Fix hyperlinks of markdown pages at depth 3 2024-01-28 17:26:57 -08:00
wait.md Convert all builtin commands to Markdown 2023-07-05 10:53:12 +02:00