made the pack completely portable and wrote relevent bat files to go with it
This commit is contained in:
16
gitportable/usr/share/awk/join.awk
Normal file
16
gitportable/usr/share/awk/join.awk
Normal file
@@ -0,0 +1,16 @@
|
||||
# join.awk --- join an array into a string
|
||||
#
|
||||
# Arnold Robbins, arnold@skeeve.com, Public Domain
|
||||
# May 1993
|
||||
|
||||
function join(array, start, end, sep, result, i)
|
||||
{
|
||||
if (sep == "")
|
||||
sep = " "
|
||||
else if (sep == SUBSEP) # magic value
|
||||
sep = ""
|
||||
result = array[start]
|
||||
for (i = start + 1; i <= end; i++)
|
||||
result = result sep array[i]
|
||||
return result
|
||||
}
|
||||
Reference in New Issue
Block a user