mirror of
https://github.com/rawiriblundell/wiki.bash-hackers.org
synced 2024-12-25 06:00:41 +01:00
Correct remaining html-bound links
This commit is contained in:
parent
572ab6ac7b
commit
51f5b90080
@ -188,10 +188,16 @@ sed -i -e 's/\\<note warning\\>/\| :warning: /' ./**/*.md
|
|||||||
sed -i -e 's/\\<\/note\\>/ |\n| --- |/' ./**/*.md
|
sed -i -e 's/\\<\/note\\>/ |\n| --- |/' ./**/*.md
|
||||||
|
|
||||||
# Let's correct any internal links so that they point to their new .md homes
|
# Let's correct any internal links so that they point to their new .md homes
|
||||||
mapfile -t mdlist < <(grep -o "\[.*\]\(.*\)" start.md | grep -v http | cut -d '(' -f2 | cut -d ')' -f1 | grep '/' | sort | uniq)
|
mapfile -t mdlist < <(grep -o "\[.*\]\(.*\)" start.md | grep -v http | cut -d '(' -f2 | cut -d ')' -f1 | cut -d '#' -f1 | grep '/' | sort | uniq)
|
||||||
|
|
||||||
while read -r; do
|
while read -r; do
|
||||||
for target in "${mdlist[@]}"; do
|
for target in "${mdlist[@]}"; do
|
||||||
sed -i -e "s|${target}|${target}.md|g" "${REPLY}"
|
sed -i -e "s|${target}|${target}.md|g" "${REPLY}"
|
||||||
done
|
done
|
||||||
done < <(find . -name "*.md")
|
done < <(find . -name "*.md")
|
||||||
|
|
||||||
|
# Because the pandoc output has a mix of markdown tables and html tables
|
||||||
|
# the above does not capture links within html tables.
|
||||||
|
# We're getting to the point that the bulk of this capture is done
|
||||||
|
# and we're over to manual corrections. But something like this may help:
|
||||||
|
# grep -R "href=\"/" * | grep -v ".*/.*\.md"
|
||||||
|
32
start.md
32
start.md
@ -145,7 +145,7 @@ attributes.</td>
|
|||||||
</tr>
|
</tr>
|
||||||
<tr class="even">
|
<tr class="even">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/export">export</a></td>
|
href="/commands/builtin/export.md">export</a></td>
|
||||||
<td>Display or set shell variables, also giving them the export
|
<td>Display or set shell variables, also giving them the export
|
||||||
attribute.</td>
|
attribute.</td>
|
||||||
<td style="text-align: center;"><code>typeset -x</code></td>
|
<td style="text-align: center;"><code>typeset -x</code></td>
|
||||||
@ -153,21 +153,21 @@ attribute.</td>
|
|||||||
</tr>
|
</tr>
|
||||||
<tr class="odd">
|
<tr class="odd">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/eval">eval</a></td>
|
href="/commands/builtin/eval.md">eval</a></td>
|
||||||
<td>Evaluate arguments as shell code.</td>
|
<td>Evaluate arguments as shell code.</td>
|
||||||
<td style="text-align: center;">-</td>
|
<td style="text-align: center;">-</td>
|
||||||
<td style="text-align: center;">special builtin</td>
|
<td style="text-align: center;">special builtin</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="even">
|
<tr class="even">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/local">local</a></td>
|
href="/commands/builtin/local.md">local</a></td>
|
||||||
<td>Declare variables as having function local scope.</td>
|
<td>Declare variables as having function local scope.</td>
|
||||||
<td style="text-align: center;">-</td>
|
<td style="text-align: center;">-</td>
|
||||||
<td style="text-align: center;">builtin</td>
|
<td style="text-align: center;">builtin</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="odd">
|
<tr class="odd">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/read.mdonly">readonly</a></td>
|
href="/commands/builtin/readonly.md">readonly</a></td>
|
||||||
<td>Mark variables or functions as read-only.</td>
|
<td>Mark variables or functions as read-only.</td>
|
||||||
<td style="text-align: center;"><code>typeset -r</code></td>
|
<td style="text-align: center;"><code>typeset -r</code></td>
|
||||||
<td style="text-align: center;">special builtin</td>
|
<td style="text-align: center;">special builtin</td>
|
||||||
@ -181,7 +181,7 @@ href="/commands/builtin/unset.md">unset</a></td>
|
|||||||
</tr>
|
</tr>
|
||||||
<tr class="odd">
|
<tr class="odd">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/shift">shift</a></td>
|
href="/commands/builtin/shift.md">shift</a></td>
|
||||||
<td>Shift positional parameters</td>
|
<td>Shift positional parameters</td>
|
||||||
<td style="text-align: center;">-</td>
|
<td style="text-align: center;">-</td>
|
||||||
<td style="text-align: center;">special builtin</td>
|
<td style="text-align: center;">special builtin</td>
|
||||||
@ -205,7 +205,7 @@ href="/syntax/keywords/coproc.md">coproc</a></td>
|
|||||||
</tr>
|
</tr>
|
||||||
<tr class="even">
|
<tr class="even">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/echo">echo</a></td>
|
href="/commands/builtin/echo.md">echo</a></td>
|
||||||
<td>Create output from arguments.</td>
|
<td>Create output from arguments.</td>
|
||||||
<td style="text-align: center;">-</td>
|
<td style="text-align: center;">-</td>
|
||||||
<td style="text-align: center;">builtin</td>
|
<td style="text-align: center;">builtin</td>
|
||||||
@ -277,28 +277,28 @@ Commands that operate on data and/or affect control flow.</th>
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr class="odd">
|
<tr class="odd">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/true">colon</a></td>
|
href="/commands/builtin/true.md">colon</a></td>
|
||||||
<td>"true" null command.</td>
|
<td>"true" null command.</td>
|
||||||
<td style="text-align: center;">true</td>
|
<td style="text-align: center;">true</td>
|
||||||
<td style="text-align: center;">special builtin</td>
|
<td style="text-align: center;">special builtin</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="even">
|
<tr class="even">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/source">dot</a></td>
|
href="/commands/builtin/source.md">dot</a></td>
|
||||||
<td>Source external files.</td>
|
<td>Source external files.</td>
|
||||||
<td style="text-align: center;">source</td>
|
<td style="text-align: center;">source</td>
|
||||||
<td style="text-align: center;">special builtin</td>
|
<td style="text-align: center;">special builtin</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="odd">
|
<tr class="odd">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/false">false</a></td>
|
href="/commands/builtin/false.md">false</a></td>
|
||||||
<td>Fail at doing nothing.</td>
|
<td>Fail at doing nothing.</td>
|
||||||
<td style="text-align: center;">-</td>
|
<td style="text-align: center;">-</td>
|
||||||
<td style="text-align: center;">builtin</td>
|
<td style="text-align: center;">builtin</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="even">
|
<tr class="even">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/continueBreak">continue / break</a></td>
|
href="/commands/builtin/continueBreak.md">continue / break</a></td>
|
||||||
<td>continue with or break out of loops.</td>
|
<td>continue with or break out of loops.</td>
|
||||||
<td style="text-align: center;">-</td>
|
<td style="text-align: center;">-</td>
|
||||||
<td style="text-align: center;">special builtin</td>
|
<td style="text-align: center;">special builtin</td>
|
||||||
@ -312,7 +312,7 @@ href="/commands/builtin/let.md">let</a></td>
|
|||||||
</tr>
|
</tr>
|
||||||
<tr class="even">
|
<tr class="even">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/return">return</a></td>
|
href="/commands/builtin/return.md">return</a></td>
|
||||||
<td>Return from a function with a specified exit status.</td>
|
<td>Return from a function with a specified exit status.</td>
|
||||||
<td style="text-align: center;">-</td>
|
<td style="text-align: center;">-</td>
|
||||||
<td style="text-align: center;">special builtin</td>
|
<td style="text-align: center;">special builtin</td>
|
||||||
@ -341,35 +341,35 @@ href="/commands/builtin/exec.md">exec</a></td>
|
|||||||
</tr>
|
</tr>
|
||||||
<tr class="even">
|
<tr class="even">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/exit">exit</a></td>
|
href="/commands/builtin/exit.md">exit</a></td>
|
||||||
<td>Exit the shell.</td>
|
<td>Exit the shell.</td>
|
||||||
<td style="text-align: center;">-</td>
|
<td style="text-align: center;">-</td>
|
||||||
<td style="text-align: center;">special builtin</td>
|
<td style="text-align: center;">special builtin</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="odd">
|
<tr class="odd">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/kill">kill</a></td>
|
href="/commands/builtin/kill.md">kill</a></td>
|
||||||
<td>Send a signal to specified process(es)</td>
|
<td>Send a signal to specified process(es)</td>
|
||||||
<td style="text-align: center;">-</td>
|
<td style="text-align: center;">-</td>
|
||||||
<td style="text-align: center;">builtin</td>
|
<td style="text-align: center;">builtin</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="even">
|
<tr class="even">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/trap">trap</a></td>
|
href="/commands/builtin/trap.md">trap</a></td>
|
||||||
<td>Set signal handlers or output the current handlers.</td>
|
<td>Set signal handlers or output the current handlers.</td>
|
||||||
<td style="text-align: center;">-</td>
|
<td style="text-align: center;">-</td>
|
||||||
<td style="text-align: center;">special builtin</td>
|
<td style="text-align: center;">special builtin</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="odd">
|
<tr class="odd">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/times">times</a></td>
|
href="/commands/builtin/times.md">times</a></td>
|
||||||
<td>Display process times.</td>
|
<td>Display process times.</td>
|
||||||
<td style="text-align: center;">-</td>
|
<td style="text-align: center;">-</td>
|
||||||
<td style="text-align: center;">special builtin</td>
|
<td style="text-align: center;">special builtin</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="even">
|
<tr class="even">
|
||||||
<td style="text-align: center;"><a
|
<td style="text-align: center;"><a
|
||||||
href="/commands/builtin/wait">wait</a></td>
|
href="/commands/builtin/wait.md">wait</a></td>
|
||||||
<td>Wait for background jobs and asynchronous lists.</td>
|
<td>Wait for background jobs and asynchronous lists.</td>
|
||||||
<td style="text-align: center;">-</td>
|
<td style="text-align: center;">-</td>
|
||||||
<td style="text-align: center;">builtin</td>
|
<td style="text-align: center;">builtin</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user