lucee.Componentcommandbox.system.modules_app.system-commands.commands.cat
Read any number of files and return their concatenated contents. By default, the the output is displayed on the console, but it can also be piped or redirected. . Output a single file {code:bash} cat box.json {code} . Concatenate two files and output them to the screen {code:bash} cat file1.txt file2.txt {code} . Concatenate two files and write them to one new file {code:bash} cat file1.txt file2.txt > combined.txt {code}
Method Summary | |
---|---|
any
|
run(commandbox.system.modules_app.system-commands.commands.Globber file1, [commandbox.system.modules_app.system-commands.commands.Globber file2], [commandbox.system.modules_app.system-commands.commands.Globber file3], [commandbox.system.modules_app.system-commands.commands.Globber file4])
You can have as many args as you want, but I'm including 4 just so. |
Methods inherited from class lucee.Component |
---|
None |
Method Detail |
---|
You can have as many args as you want, but I'm including 4 just so auto-complete will at least work for the first 4 since it's based on arg name.
file1
- File to outputfile2
- File to concatenate to previous filefile3
- File to concatenate to previous file(s)file4
- File to concatenate to previous file(s)