Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
3 deleted 257 characters in body
source | link

Shell based:

(set -f; IFS=','; printf '%s,%s\n' $(< file))

change to $(cat file) if not using ksh,bash,zsh (i.e: dash et al).

Limited by memory (or other resource limits in use for the shell instance used) in shells that implement printf as a builtin (most shells). Or by the value of ARG_MAX in shells (i.e. ksh88) that call execve to execute the command line.

Note that wildcards inside the file will be expanded by the shell in the command line. To avoid such problem, execute set -f (to disable wildcard expansion on unquoted arguments) before using the command:

( set -f; IFS=','; printf '%s,%s\n' $(< file) )

Shell based:

(IFS=','; printf '%s,%s\n' $(< file))

change to $(cat file) if not using ksh,bash,zsh (i.e: dash et al).

Limited by memory (or other resource limits in use for the shell instance used) in shells that implement printf as a builtin (most shells). Or by the value of ARG_MAX in shells (i.e. ksh88) that call execve to execute the command line.

Note that wildcards inside the file will be expanded by the shell in the command line. To avoid such problem, execute set -f (to disable wildcard expansion on unquoted arguments) before using the command:

( set -f; IFS=','; printf '%s,%s\n' $(< file) )

Shell based:

(set -f; IFS=','; printf '%s,%s\n' $(< file))

change to $(cat file) if not using ksh,bash,zsh (i.e: dash et al).

Limited by memory (or other resource limits in use for the shell instance used) in shells that implement printf as a builtin (most shells). Or by the value of ARG_MAX in shells (i.e. ksh88) that call execve to execute the command line.

2 Description of size limit of command line.
source | link

Shell based:

(IFS=','; printf '%s,%s\n' $(< file))

change to $(cat file) if not using ksh,bash,zsh (i.e: dash et al).

Limited by memory (or other resource limits in use for the shell instance used) in shells that implement printf as a builtin (most shells). Or by the value of ARG_MAX in shells (i.e. ksh88) that call execve to execute the command line.

Note that wildcards inside the file will be expanded by the shell in the command line. To avoid such problem, execute set -f (to disable wildcard expansion on unquoted arguments) before using the command:

( set -f; IFS=','; printf '%s,%s\n' $(< file) )

Shell based:

(IFS=','; printf '%s,%s\n' $(< file))

change to $(cat file) if not using ksh,bash,zsh (i.e: dash et al).

Shell based:

(IFS=','; printf '%s,%s\n' $(< file))

change to $(cat file) if not using ksh,bash,zsh (i.e: dash et al).

Limited by memory (or other resource limits in use for the shell instance used) in shells that implement printf as a builtin (most shells). Or by the value of ARG_MAX in shells (i.e. ksh88) that call execve to execute the command line.

Note that wildcards inside the file will be expanded by the shell in the command line. To avoid such problem, execute set -f (to disable wildcard expansion on unquoted arguments) before using the command:

( set -f; IFS=','; printf '%s,%s\n' $(< file) )
1
source | link

Shell based:

(IFS=','; printf '%s,%s\n' $(< file))

change to $(cat file) if not using ksh,bash,zsh (i.e: dash et al).