Skip to main content
Commonmark migration
Source Link

From man:

-d delim

 

The first character of delim is used to terminate the input line, rather than newline.

Your element 5 doesn't have a delimiter (comma), so it won't be read.

From man:

-d delim

 

The first character of delim is used to terminate the input line, rather than newline.

Your element 5 doesn't have a delimiter (comma), so it won't be read.

From man:

-d delim

The first character of delim is used to terminate the input line, rather than newline.

Your element 5 doesn't have a delimiter (comma), so it won't be read.

deleted 20 characters in body
Source Link
terdon
  • 252.4k
  • 69
  • 480
  • 718

From man:

-d delim

                The first character of delim is used to terminate the input line, rather than newline.

The first character of delim is used to terminate the input line, rather than newline.

Your element 5 doesn't have a delimiter (comma) ..., so it won't be read.

From man:

-d delim

                The first character of delim is used to terminate the input line, rather than newline.

Your element 5 doesn't have a delimiter (comma) ... so it won't read

From man:

-d delim

The first character of delim is used to terminate the input line, rather than newline.

Your element 5 doesn't have a delimiter (comma), so it won't be read.

deleted 115 characters in body
Source Link
Siva
  • 9.3k
  • 9
  • 60
  • 88

From man:

-d delim

                The first character of delim is used to terminate the input line, rather than newline.

Your element 5 doesn't have a delimiter (comma) ... so it won't read

to fix :

echo '0,1,2,3,4,5,' | while read -d, i; do echo $i; done
0
1
2
3
4
5

From man:

-d delim

                The first character of delim is used to terminate the input line, rather than newline.

Your element 5 doesn't have a delimiter (comma) ... so it won't read

to fix :

echo '0,1,2,3,4,5,' | while read -d, i; do echo $i; done
0
1
2
3
4
5

From man:

-d delim

                The first character of delim is used to terminate the input line, rather than newline.

Your element 5 doesn't have a delimiter (comma) ... so it won't read

added 119 characters in body
Source Link
Siva
  • 9.3k
  • 9
  • 60
  • 88
Loading
Source Link
Siva
  • 9.3k
  • 9
  • 60
  • 88
Loading