BASH Shell: For Loop File Names With Spaces - nixCraft

BASH Shell: For Loop File Names With Spaces - nixCraft

瀏覽:1459
日期:2025-06-13
For the shell equivalent of python’s splitlines, I always did it like this: oldifs="$IFS" IFS=" " for line in $( line-with-spaces-between-fields.txt); do ... done IFS="$oldifs" or while read ... instead of for when the list exceeds $(getconf ARG_MAX) Your...看更多