ls
Oliver Grawert
ogra at ubuntu.com
Wed Jan 27 12:12:37 UTC 2010
hi,
Am Dienstag, den 26.01.2010, 15:03 -0600 schrieb Linda:
> Is there a way to make ls silent if there is no match? I'm not finding
> it in the options, but am hoping I'm just reading over it in the man page.
ls spits the error to stderr (file descriptor 2) if you pipe the output
of 2 to /dev/null it will be quiet:
ogra at babbage2:~$ ls moo
ls: cannot access moo: No such file or directory
ogra at babbage2:~$ ls moo 2>/dev/null
ogra at babbage2:~$
ciao
oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100127/28722926/attachment.sig>
More information about the ubuntu-users
mailing list