mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 09:20:46 +08:00
parent
8a7a2f67ca
commit
4ba7855699
|
@ -90,7 +90,8 @@ More examples::
|
||||||
searches for lines ending in ``enabled)`` in ``foo.txt`` (the ``$`` is special to ``grep``: it matches the end of the line).
|
searches for lines ending in ``enabled)`` in ``foo.txt`` (the ``$`` is special to ``grep``: it matches the end of the line).
|
||||||
|
|
||||||
::
|
::
|
||||||
apt install "postgres-*"
|
|
||||||
|
apt install "postgres-*"
|
||||||
|
|
||||||
installs all packages with a name starting with "postgres-", instead of looking through the current directory for files named "postgres-something".
|
installs all packages with a name starting with "postgres-", instead of looking through the current directory for files named "postgres-something".
|
||||||
|
|
||||||
|
@ -264,7 +265,7 @@ Now let's see a few cases::
|
||||||
|
|
||||||
# Show the "out" on stderr, silence the "err"
|
# Show the "out" on stderr, silence the "err"
|
||||||
print >&2 2>/dev/null
|
print >&2 2>/dev/null
|
||||||
|
|
||||||
# Silence both
|
# Silence both
|
||||||
print >/dev/null 2>&1
|
print >/dev/null 2>&1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user