Compare commits

..

4 Commits

Author SHA1 Message Date
Bonnie I-Man Ng
6576e5a685 remove pgrep, fixing #40 2023-03-16 09:43:50 +00:00
Bonnie I-Man Ng
a85131614c modify description for $_ 2023-03-16 07:05:25 +00:00
Bonnie I-Man Ng
520f053c08
Merge pull request #38 from sarlej/add-$_
Add '$_'
2023-03-16 15:02:21 +08:00
sarlej
ebfb8f1be1
Create README.md
Add '$_'  it contains last of parameterers of recent command.
2022-05-09 13:32:42 +02:00

View File

@ -120,6 +120,7 @@ $? :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.
$_ :last argument of the previously executed command, or the path of the bash script.
$DESKTOP_SESSION current display manager
$EDITOR preferred text editor.
@ -305,8 +306,8 @@ echo "var=5;--var"| bc
grep = grep -G # Basic Regular Expression (BRE)
fgrep = grep -F # fixed text, ignoring meta-characters
egrep = grep -E # Extended Regular Expression (ERE)
pgrep = grep -P # Perl Compatible Regular Expressions (PCRE)
rgrep = grep -r # recursive
grep -P # Perl Compatible Regular Expressions (PCRE)
```
##### Grep and count number of empty lines