This answer does not work on the FreeBSD system I use. However I think it was written on a Linux system, since FreeBSD xargs
does not offer the -l
switch (deprecated, by the way).
Actually I tested the provided command line on tutorialspoint and it doesn't even work. Besides the -l
switch that I replaced with -L1
, there are other issues related to handling of spaces.
I did some testing and I found a working command line that is supposed to work on Linux as well.
Should I:
- edit the answer explaining that the first example does not work on BSD and adding mine (after all I got the idea from that answer)?
- just replace the command line with mine?
- add my own answer referencing the "wrong" one?
md5sum
command in the base system. The command on FreeBSD ismd5
. Crafting shell commands that work well on all common Unix-y systems is still a pain :-/