mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-05-13 04:16:34 +00:00
11 lines
158 B
Bash
Executable File
11 lines
158 B
Bash
Executable File
#!/bin/sh
|
|
INPUT=$1
|
|
|
|
{
|
|
echo "# Front matter"
|
|
cat "$INPUT"
|
|
} |
|
|
grep -e "^# " -e ^---$ | uniq -c |
|
|
sed "s/^ *//" | sed s/---// |
|
|
paste -d "\t" - -
|