-
WikiChip
WikiChip
-
Architectures
Popular x86
-
Intel
- Client
- Server
- Big Cores
- Small Cores
-
AMD
Popular ARM
-
ARM
- Server
- Big
- Little
-
Cavium
-
Samsung
-
-
Chips
Popular Families
-
Ampere
-
Apple
-
Cavium
-
HiSilicon
-
MediaTek
-
NXP
-
Qualcomm
-
Renesas
-
Samsung
-
From WikiChip
Difference between revisions of "mirc/identifiers/$!"
< mirc | identifiers
($! in a nutshell) |
m |
||
Line 1: | Line 1: | ||
− | |||
The '''$!''' identifier returns the input value that the script was just given via user input. This operation can also save you on writing in a variable, which isn't always an option but it is good to know when it can be useful. | The '''$!''' identifier returns the input value that the script was just given via user input. This operation can also save you on writing in a variable, which isn't always an option but it is good to know when it can be useful. | ||
Revision as of 00:04, 23 December 2013
The $! identifier returns the input value that the script was just given via user input. This operation can also save you on writing in a variable, which isn't always an option but it is good to know when it can be useful.
Example
alias testme { $?="Type something" echo -a $! }
- After you execute the alias, via /testme, you will be prompted by an input box. Whatever input you put in that box, upon clicking OK, will be immediately echoed to your active window.