File: include_markdown_files.sh

package info (click to toggle)
vsearch 2.30.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,200 kB
  • sloc: cpp: 30,216; ansic: 493; makefile: 260; sh: 101
file content (9 lines) | stat: -rw-r--r-- 249 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

# modified from https://stackoverflow.com/a/18517316

perl -ne 's/^#\((.+)\).*/`cat "$1"`/e;print' "${1}"
# perl -ne 's/^#\\((.+)\\).*/cat \"\\$1\"/e;print' "$@"
# perl -ne 's#^!\[\[(.+?)\]\].*#`'$0' "$1"`#e;print' "$@"

exit 0