Cheatsheet/TACL: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
| (11 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Tacl Cheatsheet== |
== Tacl Cheatsheet == |
||
=== Commands === |
|||
{| class="wikitable" |
|||
{| class="wikitable" <!--style="white-space: nowrap;"--> |
|||
|+ Caption text |
|||
|+ some often used TACL Commands |
|||
|- |
|- |
||
! Command |
! Command |
||
| Line 47: | Line 48: | ||
|- |
|- |
||
| '''{{kbd|PMSEARCH}}'''||{{code|inline=y|echo "$PATH"}}||{{code|inline=y|set path}} ||{{code|inline=y|$env:path}} |
| '''{{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 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}} |
| '''{{kbd|WHO}}''' || {{code|inline=y|whoami}} || {{code|inline=y|whoami}} || {{code|inline=y|whoami}} |
||
| Line 53: | Line 66: | ||
|} |
|} |
||
=== Tools === |
|||
{| class="wikitable" |
|||
|+ Often used Tools |
|||
|- |
|||
! Command |
|||
! [[File:Gnu-bash-logo.svg|40px]] |
|||
! [[File:Windows icon.svg|20px]] cmd |
|||
! [[file:Windows icon.svg|20px]] PowerShell |
|||
! Description |
|||
|- |
|||
| '''{{kbd|SYSINFO}}''' || {{code|inline=y|cat /etc/*-release}} || {{code|inline=y|systeminfo}} || {{code|inline=y|systeminfo}} |
|||
| Lists operating system version and some hardware details |
|||
|- |
|||
| '''{{kbd|EDIT}}''' || {{n/a}} || {{n/a}} || {{n/a}} |
|||
| Text Editor (linemode) |
|||
|- |
|||
| '''{{kbd|FUP}}''' || {{n/a}} || {{n/a}} || {{n/a}} |
|||
| File Utility Program |
|||
|- |
|||
| '''{{kbd|PATHCOM}}''' || {{n/a}} || {{n/a}} || {{n/a}} |
|||
| Pathway Command Interface |
|||
|- |
|||
| '''{{kbd|PERUSE}}''' || {{n/a}} || {{n/a}} || {{n/a}} |
|||
| Spooler Interface |
|||
|- |
|||
| '''{{kbd|SCF}}''' || {{n/a}} || {{n/a}} || {{n/a}} |
|||
| Subsystem Control Facility |
|||
|- |
|||
| '''{{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 nowrap noresize" <!--style="white-space: nowrap;"--> |
|||
{| class="wikitable" |
|||
|+ |
|||
|+ Separators |
|||
! rowspan="2" |TACL |
|||
! rowspan="2" |Description |
|||
! colspan="3" |equvalent commands on |
|||
|- |
|- |
||
! Character !! verbal Names ||Description |
|||
!*NIX <ref name="*NIX" group="BASH">BASH</ref> |
|||
!WIN cmd<ref name="CMD" group="CMD">Command Interpreter (legacy)</ref> |
|||
!WIN PS <ref name="PowerShell" group="PS">PowerShell</ref> |
|||
|- |
|- |
||
| '''{{key press|space bar}} || Space || |
|||
|! |
|||
|Reexecute a previous command line |
|||
|{{key press|Up}} {{key press|Enter}} |
|||
|{{key press|Up}} {{key press|Enter}} |
|||
|{{key press|Up}} {{key press|Enter}} |
|||
|- |
|- |
||
| '''{{key press|,}} || Comma || |
|||
|'''?''' |
|||
|Display a previous command line |
|||
|{{key press|Up}} |
|||
| |
|||
|{{Key press|r [#]}}<ref group="PS">invoke-history</ref> |
|||
|- |
|- |
||
| '''{{key press|(}}''' || Left Parenthesis || |
|||
|'''{{kbd|FC}}'''|||Retrieve lines for editing from a previous command line.<ref>See Note 3</ref> |
|||
|Example |
|||
|doskey /h |
|||
| |
|||
|- |
|- |
||
| '''{{key press|)}}''' || Right Parenthesis || |
|||
|'''{{kbd|HISTORY}}''' |
|||
|Display list of previously issued command lines<ref>parameter <number> 1-99</ref> |
|||
|history |
|||
|{{button|F7}} |
|||
|history |
|||
|- |
|- |
||
|'''{{ |
| '''{{key press|/}}''' || Slash || |
||
|Displays settings of (TACL) environmental parameters |
|||
|env |
|||
|set |
|||
|gci env:* |
|||
|- |
|- |
||
|'''{{ |
| '''{{key press|semicolon}}'''|| Semicolon || |
||
|Displays all TACL functions |
|||
|typeset -F |
|||
|help |
|||
|Get-Command |
|||
|- |
|- |
||
| '''{{key press|enter}}''' || carriage return|| Physical EOL |
|||
|'''{{kbd|VARIABLES}}''' |
|||
|Displays names of available variables, macros and routines |
|||
|set ‐o posix |
|||
| |
|||
| |
|||
|- |
|- |
||
| '''{{key press|~;}}''' || Tilde Semicolon|| Logical EOL |
|||
|'''{{Kbd|WHO}}''' |
|||
|Info for current user |
|||
|whoami |
|||
|whoami |
|||
|whoami |
|||
|- |
|- |
||
| '''{{key press|&}} || Ampersand |
|||
|'''{{Kbd|SYSINFO}}''' |
|||
| 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: |
|||
|Info for System |
|||
* 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. |
|||
|cat /etc/*-release |
|||
*You cannot use the continuation character with a TACL directive (a line beginning with a question mark). |
|||
|systeminfo |
|||
|} |
|||
|systeminfo |
|||
=== Wildcards === |
|||
{| class="wikitable" |
|||
|+ Wildcards |
|||
|- |
|- |
||
! Header text !! Header text !! Header text |
|||
|'''{{Kbd|FILES}}''' |
|||
|List files in current directory |
|||
|ls |
|||
|dir /B |
|||
|ls -Name |
|||
|- |
|- |
||
| '''{{kbd|?}}''' || Matches any single character || Example |
|||
|'''{{Kbd|ASSIGN}}''' |
|||
|List defined ASSIGNS |
|||
| |
|||
| |
|||
| |
|||
|- |
|- |
||
| '''{{kbd|*}}''' || Matches any number of characters, including none || Example |
|||
|'''{{Kbd|INFO DEFINE}}''' |
|||
|List defined Defines |
|||
| |
|||
| |
|||
| |
|||
|- |
|- |
||
| '''{{kbd|{{=}}*}}''' or '''{{kbd|**}}''' || Matches any number of characters for Definenames || Example |
|||
|'''{{Kbd|PARAM}}''' |
|||
|List defined Params |
|||
| |
|||
| |
|||
| |
|||
|} |
|} |
||
=== Operators === |
|||
<references/> |
|||
{| class="wikitable" |
|||
=== BASH === |
|||
|+ Operators |
|||
<references group="BASH"/> |
|||
|- |
|||
! 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> |
|||
<references group="CMD"/> |
|||
<noinclude>[[Category:Cheatsheets]]</noinclude> |
|||
=== Powershell === |
|||
<references group="PS"/> |
|||
Latest revision as of 11:07, 5 May 2026
Tacl Cheatsheet
Commands
Tools
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
| 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:
|
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
| 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 |