diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-12 10:12:25 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-12 10:12:25 +0100 |
| commit | 6cd664dba6fd91481a6ece4c36f6c77b0744c093 (patch) | |
| tree | 792ded50b37263e676a54a738b5ba1721a71a976 /http/bin | |
| parent | 0d8f27357a9c26ccbebe2327a1997801d0cfe873 (diff) | |
remove unnecessary backslash from grep expression in http/bin/blog
Diffstat (limited to 'http/bin')
| -rwxr-xr-x | http/bin/blog | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http/bin/blog b/http/bin/blog index 7038e4a..1c77f5a 100755 --- a/http/bin/blog +++ b/http/bin/blog @@ -96,9 +96,9 @@ do title="$name" cat "$entry" | eval "POST_TITLE=\"${title}\" ${postprocess_cmd}" > "$dest" else - title="$(grep --regexp "^\# " --max-count 1 "$entry" | cut -c3-)" + title="$(grep --regexp "^# " --max-count 1 "$entry" | cut -c3-)" export POST_TITLE="$title" - cat "$entry" | grep --regexp "^\# " --invert-match | eval "$postprocess_cmd" > "$dest" + cat "$entry" | grep --regexp "^# " --invert-match | eval "$postprocess_cmd" > "$dest" fi cat "$entry" | eval "$extract_args_cmd" > "${dest}.args" echo "Processed ${entry#$(dirname ${BLOGS})/} to ${dest#$(dirname ${SRC})/}" |
