[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: чем можно пожать файл на куски?



Anton Petrusevich wrote:
On Friday 02 June 2006 12:53, aor E Lia Zod wrote:
восстановить:
$ cat filename.* > filename.ogg

Покажите мне гарантию, что filename.* будут развёрнуты шеллом в правильном порядке? Насколько я помню, нет такой, и даже я нарывался, вроде. Правильный ответ: cat `ls filename.*`, поскольку в мане на ls сказано, что он сортирует имена файлов. Или меня подводит склероз?
man bash:

   Pathname Expansion
   After  word  splitting,  unless  the -f option has been set, bash
scans each word for the characters *, ?, and [.  If one of these
characters appears, then the word is regarded as a pattern, and replaced
with an alphabetically sorted list of file names matching the pattern.

--
Sergei Stolyarov
icq# 4099576



Reply to: