mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-12-23 16:56:35 +00:00
add handy environment variables
This commit is contained in:
parent
bd692c5cce
commit
24f05d05cd
@ -1327,6 +1327,15 @@ cat file|rev | cut -d/ -f1 | rev
|
|||||||
((var++))
|
((var++))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
##### some handy environment variables
|
||||||
|
$0 :name of shell or shell script.  
|
||||||
|
$1, $2, $3, ... :positional parameters.  
|
||||||
|
$# :number of positional parameters.  
|
||||||
|
$? :most recent foreground pipeline exit status.  
|
||||||
|
$- :current options set for the shell.  
|
||||||
|
$$ :pid of the current shell (not subshell).  
|
||||||
|
$! :is the PID of the most recent background command.  
|
||||||
|
|
||||||
|
|
||||||
## System
|
## System
|
||||||
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
|
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]
|
||||||
|
Loading…
Reference in New Issue
Block a user