Re: Не в тему: помогите с конвейером командной строки
>>>>> Дмитрий Фёдоров <dm.fedorov@gmail.com> writes:
>>>>> 22 мая 2015 г., 0:46 пользователь Victor Wagner написал:
[…]
>> Поэтому перенаправлять ее вывод через sort — лишнее. Она сама
>> сортирует.
> Но да, по умолчанию сортирует.
… А равно экранирует «непечатные» коды, etc.
[…]
>> Но вообще непонятно зачем здесь нужна ls, если есть метасимволы
>> shell.
>> То есть вообще-то тот же результат достигается с помощью mplayer *
> А вот shell не сортирует.
?
2.13.3 Patterns Used for Filename Expansion
[…]
3 Specified patterns shall be matched against existing filenames
and pathnames, as appropriate. […] If the pattern matches any
existing filenames or pathnames, the pattern shall be replaced with
those filenames and pathnames, sorted according to the collating
sequence in effect in the current locale.
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html
--
FSF associate member #7257 np. Basics — Mordi … 3013 B6A0 230E 334A
Reply to: