Junichi Uekawa <[EMAIL PROTECTED]> wrote: > reopen 339136 > retitle 339136 stat --format behavior change with default newline > thanks ... > Older (sarge system): ... > stat * --format "%d %i:"|tr : '\n' | head > 2054 21186142 > 2054 21186136 > 2054 7831563 > > Newer(current sid): ... > $ stat * --format "%d %i:"|tr : '\n' | head > 2049 212424 > > 2049 212508 > > 2049 212509
You can get portable results by adding tr's --squeeze-repeats (-s) option: $ stat * --format "%d %i:"|tr -s : '\n' | head Also, it's a good idea to put file names after `--' in case the expansion of `*' includes names starting with `-'. $ stat --format "%d %i:" -- *|tr -s : '\n' | head -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]