I am trying to sort some simple pipe-delimited data. However, sort isn’t actually sorting. It moves my header row to the bottom, but my two rows starting with 241 are being split by a row starting with 24.
I really enjoying using
control+r to recursively search my command history. I’ve found a few good options I like to use with it:
I have a PC with Intel(R) Pentium(R) CPU G640 @ 2.80 GHz and 8 GB of RAM. I am running Scientific Linux 6.5 on it with EXT3 filesystem.
I have a line (or many lines) of numbers that are delimited by an arbitrary character. What UNIX tools can I use to sort each line’s items numerically, retaining the delimiter?
I like being able to name files and directories with an underscore prefix if it’s something I want to keep separate from other files and directories at the same level. On Windows and Mac, for example, prefixing a file with an underscore sorts it to the top, in front of files starting with an alphanumeric character.
I have this input:
For a long period I thought the default behavior of the
sort program was using ASCII order. However, when I input the following lines into
sort without any arguments:
I have the following directory listing on a Debian Linux system. However, one strange thing is that the file populate.sql does not seem to be sorted with the rest.
Is there a way to output file’s contents using custom patterns?