OFS
suggest change$OFS (Output Field Separator) is the string used when an array is converted to a string. If $OFS is not set, the separator is a space. It can be changed:
PS C:\> $array = 1,2,3
PS C:\> "$array" # default OFS will be used
1 2 3
PS C:\> $OFS = ",." # we change OFS to comma and dot
PS C:\> "$array"
1,.2,.3
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents