BBC.SHARED.JOBI.TEMPFILE-PRINT

Summary

Object type
JOBI
Object Folder
PACKAGES/BEST-BLU/BBC.SHARED/SOURCE/TEMPFILES
Title
Print content of temporary file
Archive Key 1
-
Archive Key 2
-
Created
WRITER/B4A am: 2022-02-28 14:47:20
Last Modified
WRITER/B4A am: 2024-01-09 09:57:42 18 x
Last Used
-

Description

This include prints the content of a temporary file

Requirements

  • Unix: bash, cat
  • Windows: Powershell 7.0

Parameter

Input

Unix

$bbcs_temp_file
script variable containing the name of the temporary file

Windows

$bbcs_temp_file
powershell variable containing the name of the temporary file

Output

Example

:include BBC.SHARED.JOBI.TEMPFILE-PRINT

Process

:switch &$PLATFORM#
:  case "UNIX"
cat $bbcs_temp_file
:  case "WINDOWS"
Get-Content $bbcs_temp_file
:endswitch