Am Di., 2. Juni 2020 um 13:20 Uhr schrieb Freeman Gilmore
<[email protected]>:
>
> Example:
> (string-split "root:x:0:0:root:/root:/bin/bash" #\:) ⇒ ("root" "x" "0"
> "0" "root" "/root" "/bin/bash")
>
> Now if i replace the ":"s with " "s, what do I put in the place of the ":" in:
> (string-split "root x 0 0 root /root /bin/bash" #\:) ⇒ ("root" "x" "0"
> "0" "root" "/root" "/bin/bash")
>
> Thank you, ƒg
>

(string-split "root x 0 0 root /root /bin/bash" #\SPACE)

HTH,
  Harm

Reply via email to