Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

14
  • 30
    Side note: Better not use cat x*, because the order of files depends on your locale settings. Better start typing cat x, than press Esc and then * - you'll see the expanded order of files and can rearrange. Commented Nov 15, 2011 at 12:33
  • 27
    Instead of cat x* you could consider shell brace expansion, cat xa{a..g} which expands the specified sequence to cat xaa xab xac xad xae xaf xag Commented Nov 15, 2011 at 12:57
  • 3
    @rozcietrzewiacz - can you give an example of how I would adjust my locale setting that would break cat x* ? Would the new locale setting not also affect split so that if split and cat x* were used on the same system they would always work? Commented Nov 15, 2011 at 14:29
  • 3
    "opening two files, removing the EOF marker from the first one, and connecting them - without having to go through all the contents."... sounds like you need to invent a new filesystem in order to do what you want Commented Nov 15, 2011 at 16:14
  • 9
    @cwd: Looking at split.c in GNU Coreutils, the suffixes are constructed from a fixed array of characters: static char const *suffix_alphabet = "abcdefghijklmnopqrstuvwxyz";. The suffix wouldn't be affected by the locale. (But I don't think any sane locale would reorder the lowercase letters; even EBCDIC maintains their standard order.) Commented Nov 16, 2011 at 2:04