Add concat program
This commit is contained in:
parent
4eccff5f8f
commit
f8878e3f29
1 changed files with 11 additions and 0 deletions
11
bin/concat
Executable file
11
bin/concat
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env lua
|
||||
|
||||
local first = true
|
||||
for line in io.lines() do
|
||||
if first then
|
||||
first = false
|
||||
else
|
||||
io.write(...)
|
||||
end
|
||||
io.write(line)
|
||||
end
|
Loading…
Reference in a new issue