[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is perl still the No.1 language for sysadmin?



On Monday, 3 April 2023 22:03:59 CEST, Greg Wooledge wrote:
With this option, you can supply a stream of NUL-delimited filenames
to xargs -0, and process them safely.  No explosions will occur, no matter
what filenames are passed.

out of curiosity, why not omit xargs altogether and do someting like:

#!/bin/bash
[...]
   printf '%s\0' "$d"/*
done |
   while read -r -d '' line; do
[...]


or do i miss something?


greetings...


Reply to: