Jump to content

Cheatsheet/TACL: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(30 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
|}
|}

=== Tools ===
{| class="wikitable"
{| class="wikitable"
|+ Often used Tools
|+
!TACL
!*NIX
!WIN (cmd)
!WIN Powershell
!Comment
|-
|-
! 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}}
|'''?'''<nowiki> [#|text]</nowiki>
| 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"
{| class="wikitable"
|+ Meta Characters
!
!
!
!
|-
|-
! Character !! verbal Names ||Description
|No other argument
|display previous command
|
|
|-
|-
| * || Example || Example || Any Character(s)
|number
|display nth command
|
|
|-
|-
| ? || Example || Example || One Character
|text
|-
|display command, containing 'text'
| '''{{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>