On Tue, Mar 15, 2022 at 11:05:55PM +0100, Tomasz Rola via Silklist wrote:
[...]
> Short description, how to:
> 
> $  cat ./thathsbooks.sh | md5sum ; wc <./thathsbooks.sh
> 4961f23c448d4c54686daa84f985a14b  -
>   437  1895 11062

Of course I did blow it up, despite all the checks before sending...

$   cat /var/spool/mail/rtomek | awk '/thathsbooks.sh start/ {copy=1} 
/\/bin\/bash/,/^done/ {if (copy) print;}' >thathsbooks.sh

$   md5sum <thathsbooks.sh ; wc <thathsbooks.sh
a946d7482d449d528c810a240476a141  -
  438  1895 11074

Aha, something went wrong. One line too many. Upon closer look, I
discovered that editor wrapped one line and I missed it.

421               END {for(c in cnt) {tot+=cnt[c]; printf("%s:
422             %d\n",c,cnt[c]);}

Those two should be merged into one:

421              END {for(c in cnt) {tot+=cnt[c]; printf("%s: %d\n",c,cnt[c]);}

Edit, save as thathsbooks2.sh and...

$   md5sum <thathsbooks2.sh  ; wc  <thathsbooks2.sh
4961f23c448d4c54686daa84f985a14b  -
  437  1895 11062

Yes, now it is ok.

-- 
Regards,
Tomasz Rola

--
** A C programmer asked whether computer had Buddha's nature.      **
** As the answer, master did "rm -rif" on the programmer's home    **
** directory. And then the C programmer became enlightened...      **
**                                                                 **
** Tomasz Rola          mailto:[email protected]             **
_______________________________________________
Silklist mailing list
Manage your membership here:
https://lists.digeratus.in/postorius/lists/silklist.lists.digeratus.in/

Reply via email to