Megatest

Ticket Change Details
Login
Overview

Artifact ID: e57669bf74a7a1e54df1a627cf486a38944fc23e
Ticket: dd54f4b87b4f717a0c60ab807f3f0ff167c89510
new command [cat <path> {alternate}], conditional cat if file exists
User & Date: mmgraham on 2024-03-25 11:23:22
Changes

  1. comment changed to:
    Applies to: megatest config, runconfig, testconfig
    
    
    
    Description:
    
    
    
    Checks for existence of file.
    
    
    
    If file exists, cat it.
    
    
    
    If file does not exist, and optional text defined display optional text
    
    
    
    If file does not exist, and optional text not specified, print an error that the file does not exist.
    
    
    
    Syntax:
    
    
    
    [cat <path>]
    
    [cat <path> "text if file does not exist"]
    
    
    
    Example:
    
    
    
    [items]
    
    VAR1 [cat /path/to/somefile]
    
    VAR2 [cat /path/to/someother ""]
    
  2. foundin changed to: "1.80/29"
  3. login: "mmgraham"
  4. private_contact changed to: "97a985880d55d4326aae6748098171ce1de44344"
  5. severity changed to: "Important"
  6. status changed to: "Open"
  7. title changed to:
     new command [cat <path> {alternate}], conditional cat if file exists
    
  8. type changed to: "Feature_Request"