From 5f8d70d4ca4e6cd13ff8a928df8b4b82b0f7595d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 15 Dec 2020 14:16:03 -0300 Subject: TIL on Awk: Add update section with POSIX Awk version --- ...snippet-shellcheck-all-scripts-in-a-repository.po | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'locale/eo/LC_MESSAGES/_tils') diff --git a/locale/eo/LC_MESSAGES/_tils/2020-12-15-awk-snippet-shellcheck-all-scripts-in-a-repository.po b/locale/eo/LC_MESSAGES/_tils/2020-12-15-awk-snippet-shellcheck-all-scripts-in-a-repository.po index 8c55368..41cfc66 100644 --- a/locale/eo/LC_MESSAGES/_tils/2020-12-15-awk-snippet-shellcheck-all-scripts-in-a-repository.po +++ b/locale/eo/LC_MESSAGES/_tils/2020-12-15-awk-snippet-shellcheck-all-scripts-in-a-repository.po @@ -183,6 +183,26 @@ msgstr "" msgid "ref: awk-snippet-shellcheck-all-scripts-in-a-repository" msgstr "" +msgid "*Update*" +msgstr "" + +msgid "" +"After publishing, I could remove `{ nextfile }` and even make the script " +"simpler:" +msgstr "" + +msgid "" +"#!/usr/sh\n" +"set -eu\n" +"\n" +"git ls-files -z | \\\n" +" xargs -0 awk 'FNR==1 && /^#!\\// { print FILENAME }' | \\\n" +" xargs shellcheck\n" +msgstr "" + +msgid "Now both the shell and Awk usage are POSIX compatible." +msgstr "" + #~ msgid "" #~ "title: 'Awk snippet: ShellCheck all scripts in a repository'\n" #~ "date: 2020-12-15\n" -- cgit v1.2.3