Jump to content

Cheatsheet/TACL: Difference between revisions

From wikiNonStop
Content deleted Content added
No edit summary
No edit summary
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Tacl Cheatsheet ==


=== Commands ===
{| class="wikitable nowrap"
{| class="wikitable" <!--style="white-space: nowrap;"-->
|+ Caption text
|+ some often used TACL Commands
|-
|-
! Command
! Command !! *NIX !! WIN (CMD) !! WIN (PS) !! Comment
! [[File:Gnu-bash-logo.svg|40px]]
! [[File:Windows icon.svg|20px]] cmd
! [[file:Windows icon.svg|20px]] PowerShell
! Description
|-
|-
| '''{{kbd|WHO}}''' || whoami || whoami || whoami || get info for current user
| '''{{kbd|!}}''' || {{key press|Up|Enter}} || {{key press|Up|Enter}} || {{key press|Up|Enter}}
| Reexecute previous command
|-
|-
| '''{{kbd|HISTORY}}''' || history || {{button|F7}} || history || Displays previously issued command lines
| '''{{kbd|?}}''' || {{key press|Up}} || {{key press|Up}} || {{key press|Up}}
| Display previous command
|-
|-
| '''{{kbd|ENV}}''' || env || set || gci env:*|| Displays settings of (TACL) environmental parameters
| '''{{kbd|FC}}''' || {{n/a}} || {{n/a}} || {{n/a}}
| Display previous command for modifying
|-
|-
| '''{{kbd|BUILTINS}}''' || typeset -F || || || Displays all TACL functions
| '''{{kbd|HISTORY}}''' || {{code|inline=y|history}} || {{code|inline=y|doskey /h}} || {{code|inline=y|history}}
| Display list of previously issued command lines
|-
|-
| '''{{kbd|VARIABLES}} || typeset -F || || || Displays names of variables, macros and routines available for you
| '''{{kbd|ENV}}''' || {{code|inline=y|env}} ||{{code|inline=y|env}} || {{code|inline=y|env}}
| Display environment
|-
|-
| '''{{kbd|FC}} || Example || doskey /h || || Retrieves, edits, and reexecutes lines in history
| '''{{kbd|EOF!}}''' || {{key press|CTRL|y}} ||{{code|inline=y|env}} || {{code|inline=y|env}}
buffer. Works in many command line tools such as TACL, FUP or SCF
| Stop execution of command or tool
|-
|-
| '''{{kbd|EXIT}}''' || {{code|inline=y|exit}} ||{{key press|CTRL|c}} || {{key press|CTRL|c}}
| Example || Example || Example || Example
| Stop execution of command or tool
|-
|-
| '''{{kbd|FILES}}''' || {{code|inline=y|ls}} || {{code|inline=y|dir /B}} || {{code|inline=y|ls -Name}}
| Example || Example || Example || Example
| List files in current directory
|-
|-
| '''{{kbd|FILEINFO}}'''|| {{code|inline=y|ls -lisa}}|| {{code|inline=y|dir}} || {{code|inline=y|ls}}
| Example || Example || Example || Example
| List details for files in current directory
|-
|-
| '''{{kbd|HELP}}''' || {{code|inline=y|man}} || {{code|inline=y|help}} || {{code|inline=y|help}}
| Example || Example || Example || Example
| Help
|-
| '''{{kbd|LOGON}}''' || {{code|inline=y|logon}} || {{code|inline=y|logon}} || {{code|inline=y|logon}}
| Logon
|-
| '''{{kbd|PASSWORD}}'''|| {{code|inline=y|passwd}} || {{code|inline=y|passwd}} || {{code|inline=y|passwd}}
| Set or change password
|-
| '''{{kbd|PMSEARCH}}'''||{{code|inline=y|echo "$PATH"}}||{{code|inline=y|set path}} ||{{code|inline=y|$env:path}}
| Display paths to be searched for executables or macros
|-
| '''{{kbd|SETPROMPT&nbsp;ALL}}'''||{{code|inline=y|PS1{{=}}'\h(\u)\W>'}}||{{code|inline=y|prompt $p$g}} ||{{n/a}}
| Set promptline's prefix
|-
| '''{{kbd|STATUS}}'''||{{code|inline=y|ps}}||{{code|inline=y|tasklist}} ||{{code|inline=y|Get-Process}}
| Display status of running processes
|-
| '''{{kbd|STOP}}'''||{{code|inline=y|kill}}||{{code|inline=y|taskkill}} ||{{code|inline=y|Stop-Process}}
| Stop running process
|-
| '''{{kbd|VOLUME}}'''||{{code|inline=y|cd}}||{{code|inline=y|cd}} ||{{code|inline=y|cd}}
| Changes your current volume and/or subvolume
|-
| '''{{kbd|WHO}}''' || {{code|inline=y|whoami}} || {{code|inline=y|whoami}} || {{code|inline=y|whoami}}
| Display info for user
|}
|}

{| class="wikitable nowrap noresize" style="white-space: nowrap;"
=== Tools ===
|+
{| class="wikitable"
!TACL
|+ Often used Tools
!*NIX
!WIN (cmd<ref>Command Interpreter (legacy)</ref>)
!WIN (PS<ref>Powershell</ref>)
!Comment
|-
|-
! Command
|!
! [[File:Gnu-bash-logo.svg|40px]]
|
! [[File:Windows icon.svg|20px]] cmd
|
! [[file:Windows icon.svg|20px]] PowerShell
|
! Description
|Reexecutes a previous command line<ref>See Note 1</ref>
|-
|-
| '''{{kbd|SYSINFO}}''' || {{code|inline=y|cat /etc/*-release}} || {{code|inline=y|systeminfo}} || {{code|inline=y|systeminfo}}
|'''?'''
| Lists operating system version and some hardware details
|
|
|
|Displays a previous command line<ref>See Note 2</ref>
|-
|-
|'''{{kbd|FC}} '''
| '''{{kbd|EDIT}}''' || {{n/a}} || {{n/a}} || {{n/a}}
| Text Editor (linemode)
|Example
|doskey /h
|
|Retrieves, edits, and reexecutes lines in history buffer. Works in many subsystems such as
* TACL, FUP, SQLCI or SCF ...<ref>See Note 3</ref>
|-
|-
|'''{{kbd|ENV}}'''
| '''{{kbd|FUP}}''' || {{n/a}} || {{n/a}} || {{n/a}}
| File Utility Program
|env
|set
|gci env:*
|Displays settings of (TACL) environmental parameters
|-
|-
|'''{{kbd|BUILTINS}}'''
| '''{{kbd|PATHCOM}}''' || {{n/a}} || {{n/a}} || {{n/a}}
| Pathway Command Interface
|typeset -F
|
|
|Displays all TACL functions
|-
|-
|'''{{kbd|VARIABLES}} '''
| '''{{kbd|PERUSE}}''' || {{n/a}} || {{n/a}} || {{n/a}}
| Spooler Interface
|<code>set -o posix</code>
|
|-
| '''{{kbd|SCF}}''' || {{n/a}} || {{n/a}} || {{n/a}}
|
| Subsystem Control Facility
|Displays names of available TACL functions, variables, macros and routines in your environment
|-
| '''{{kbd|SCUP}}''' || {{n/a}} || {{n/a}} || {{n/a}}
| Screen Cobol Utility Progrem
|-
| '''{{kbd|SPOOLCOM}}''' || {{n/a}} || {{n/a}} || {{n/a}}
| Spooler Interface
|-
| '''{{kbd|SQLCI}}''' || {{n/a}} || {{n/a}} || {{n/a}}
| SQL Command Interface
|-
| '''{{kbd|TEDIT}}''' || {{code|inline=y|nano}} || {{code|inline=y|edit}} || {{code|inline=y|edit}}
| Text Editor (blockmode)
|-
| '''{{kbd|TMFCOM}}''' || {{n/a}} || {{n/a}} || {{n/a}}
| TMF Command interface
|-
| '''{{kbd|VIEWPT}}''' || {{n/a}} || {{n/a}} || {{n/a}}
| Display logged messages
|}
|}

=== Meta Characters ===
{| class="wikitable"
|+ Meta Characters
|-
! Character !! verbal Names ||Description
|-
| * || Example || Example || Any Character(s)
|-
| ? || Example || Example || One Character
|-
| '''{{kbd|<nowiki>==</nowiki>}}''' || Double equal signs || Specifies a comment from the equal signs to EOL
|-
| '''{{kbd|[ ]}}''' || Square brackets || Cause TACL to expand the enclosed text
|-
| '''{{kbd|<nowiki>{ }</nowiki>}}'''|| Pair of braces || Specifies a label; used in #CASE, #DEF, #IF, and #LOOP functions
|-
| '''{{kbd|<nowiki>| |</nowiki>}}'''|| Pair of vertical lines || Specifies a label; used in #CASE, #DEF, #IF, and #LOOP functions
|-
| '''{{kbd|<nowiki>~</nowiki>}}''' || Tilde || Changes the interpretation of the next character (or in the case of double equal signs two characters)
|}

=== Separators ===
{| class="wikitable"
|+ Separators
|-
! Character !! verbal Names ||Description
|-
| '''{{key press|space bar}} || Space ||
|-
| '''{{key press|,}} || Comma ||
|-
| '''{{key press|(}}''' || Left&nbsp;Parenthesis ||
|-
| '''{{key press|)}}''' || Right&nbsp;Parenthesis ||
|-
| '''{{key press|/}}''' || Slash ||
|-
| '''{{key press|semicolon}}'''|| Semicolon ||
|-
| '''{{key press|enter}}''' || carriage&nbsp;return|| Physical EOL
|-
| '''{{key press|~;}}''' || Tilde&nbsp;Semicolon|| Logical EOL
|-
| '''{{key press|&}} || Ampersand
| An ampersand {{kbd|&}} at the end of a line of TACL commands or function calls signals that the line continues on the next physical line. This continuation applies to executable statements and comments, with two exceptions:
* TACL does not interpret data transmitted by a process or file opened using #REQUESTER or #SERVER; any special characters are treated as text. If you receive a line that contains an ampersand, TACL does not view the ampersand as a continuation character.
*You cannot use the continuation character with a TACL directive (a line beginning with a question mark).
|}
=== Wildcards ===
{| class="wikitable"
|+ Wildcards
|-
! Header text !! Header text !! Header text
|-
| '''{{kbd|?}}''' || Matches any single character || Example
|-
| '''{{kbd|*}}''' || Matches any number of characters, including none || Example
|-
| '''{{kbd|{{=}}*}}''' or '''{{kbd|**}}''' || Matches any number of characters for Definenames || Example
|}

=== Operators ===
{| class="wikitable"
|+ Operators
|-
! Op !! Name !! Type
|-
| '''{{kbd|NOT}}''' || NOT || Logical
|-
| '''{{kbd|AND}}''' || AND || Logical
|-
| '''{{kbd|OR}}''' || OR || Logical
|-
| '''{{kbd|*}}''' || Multiplication || Arithmetic
|-
| '''{{kbd|/}}''' || Division || Arithmetic
|-
| '''{{kbd|+}}''' || Addition || Arithmetic
|-
| '''{{kbd|-}}''' || Subtraction || Arithmetic
|-
| '''{{kbd|>}}''' || Greater then || Arithmetic Comparison
|-
| '''{{kbd|<}}''' || Less then || Arithmetic Comparison
|-
| '''{{kbd|>{{=}}}}''' || Greater then or Equal || Arithmetic Comparison
|-
| '''{{kbd|<{{=}}}}''' || Less then or Equal || Arithmetic Comparison
|-
| '''{{kbd|{{=}}}}''' || Equal to || Arithmetic Comparison
|-
| '''{{kbd|<>}}''' || Not Equal || Arithmetic Comparison
|-
| '''{{kbd|'+'}}''' || Concatenation || String
|-
| '''{{kbd|'>'}}''' or {{kbd|'!>'}} || Greater then || String Comparison
|-
| '''{{kbd|'<'}}''' or {{kbd|'!<'}} || Less then || String Comparison
|-
| '''{{kbd|'>{{=}}'}}''' or {{kbd|'!>{{=}}'}} || Greater then or Equal || String Comparison
|-
| '''{{kbd|'<{{=}}'}}''' or {{kbd|'!<{{=}}'}} || Less then or Equal || String Comparison
|-
| '''{{kbd|'{{=}}'}}''' or '''{{kbd|'!'}}''' || Equal to || String Comparison
|-
| '''{{kbd|'<>'}}''' or '''{{kbd|'!<>'}}''' || Not Equal to || String Comparison
|}

==Other Cheatsheets==
<categorytree mode="pages">Cheatsheets</categorytree>

<noinclude>[[Category:Cheatsheets]]</noinclude>

Latest revision as of 11:07, 5 May 2026

Tacl Cheatsheet

Commands

some often used TACL Commands
Command cmd PowerShell Description
! +↵ Enter +↵ Enter +↵ Enter Reexecute previous command
? Display previous command
FC N/A N/A N/A Display previous command for modifying
HISTORY history doskey /h history Display list of previously issued command lines
ENV env env env Display environment
EOF! CTRL+y env env Stop execution of command or tool
EXIT exit CTRL+c CTRL+c Stop execution of command or tool
FILES ls dir /B ls -Name List files in current directory
FILEINFO ls -lisa dir ls List details for files in current directory
HELP man help help Help
LOGON logon logon logon Logon
PASSWORD passwd passwd passwd Set or change password
PMSEARCH echo "$PATH" set path $env:path Display paths to be searched for executables or macros
SETPROMPT ALL PS1='\h(\u)\W>' prompt $p$g N/A Set promptline's prefix
STATUS ps tasklist Get-Process Display status of running processes
STOP kill taskkill Stop-Process Stop running process
VOLUME cd cd cd Changes your current volume and/or subvolume
WHO whoami whoami whoami Display info for user

Tools

Often used Tools
Command cmd PowerShell Description
SYSINFO cat /etc/*-release systeminfo systeminfo Lists operating system version and some hardware details
EDIT N/A N/A N/A Text Editor (linemode)
FUP N/A N/A N/A File Utility Program
PATHCOM N/A N/A N/A Pathway Command Interface
PERUSE N/A N/A N/A Spooler Interface
SCF N/A N/A N/A Subsystem Control Facility
SCUP N/A N/A N/A Screen Cobol Utility Progrem
SPOOLCOM N/A N/A N/A Spooler Interface
SQLCI N/A N/A N/A SQL Command Interface
TEDIT nano edit edit Text Editor (blockmode)
TMFCOM N/A N/A N/A TMF Command interface
VIEWPT N/A N/A N/A Display logged messages

Meta Characters

Meta Characters
Character verbal Names Description
* Example Example Any Character(s)
? Example Example One Character
== Double equal signs Specifies a comment from the equal signs to EOL
[ ] Square brackets Cause TACL to expand the enclosed text
{ } Pair of braces Specifies a label; used in #CASE, #DEF, #IF, and #LOOP functions
| | Pair of vertical lines Specifies a label; used in #CASE, #DEF, #IF, and #LOOP functions
~ Tilde Changes the interpretation of the next character (or in the case of double equal signs two characters)

Separators

Separators
Character verbal Names Description
space bar Space
, Comma
( Left Parenthesis
) Right Parenthesis
/ Slash
; Semicolon
↵ Enter carriage return Physical EOL
~; Tilde Semicolon Logical EOL
& Ampersand An ampersand & at the end of a line of TACL commands or function calls signals that the line continues on the next physical line. This continuation applies to executable statements and comments, with two exceptions:
  • TACL does not interpret data transmitted by a process or file opened using #REQUESTER or #SERVER; any special characters are treated as text. If you receive a line that contains an ampersand, TACL does not view the ampersand as a continuation character.
  • You cannot use the continuation character with a TACL directive (a line beginning with a question mark).

Wildcards

Wildcards
Header text Header text Header text
? Matches any single character Example
* Matches any number of characters, including none Example
=* or ** Matches any number of characters for Definenames Example

Operators

Operators
Op Name Type
NOT NOT Logical
AND AND Logical
OR OR Logical
* Multiplication Arithmetic
/ Division Arithmetic
+ Addition Arithmetic
- Subtraction Arithmetic
> Greater then Arithmetic Comparison
< Less then Arithmetic Comparison
>= Greater then or Equal Arithmetic Comparison
<= Less then or Equal Arithmetic Comparison
= Equal to Arithmetic Comparison
<> Not Equal Arithmetic Comparison
'+' Concatenation String
'>' or '!>' Greater then String Comparison
'<' or '!<' Less then String Comparison
'>=' or '!>=' Greater then or Equal String Comparison
'<=' or '!<=' Less then or Equal String Comparison
'=' or '!' Equal to String Comparison
'<>' or '!<>' Not Equal to String Comparison

Other Cheatsheets