commandbox.system.modules_app.system-commands.commands

Class cat

lucee.Component
    extended by commandbox.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}

Class Attributes:
  • aliases : type
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    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

    run

    public 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 auto-complete will at least work for the first 4 since it's based on arg name.

    Parameters:
    file1 - File to output
    file2 - File to concatenate to previous file
    file3 - File to concatenate to previous file(s)
    file4 - File to concatenate to previous file(s)