Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

sort

What’s the default order of Linux sort?

August 9, 2022 by Magenaut

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:

Categories Q&A, Unix & Linux Tags linux, locale, sort Leave a comment

Unexpected sort order in en_US.UTF-8 locale

August 8, 2022 by Magenaut

While trying to answer this question about SQL sorting, I noticed a sort order I did not expect:

Categories Q&A, Unix & Linux Tags glibc, locale, sort Leave a comment

Directory listing not fully sorted

August 8, 2022 by Magenaut

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.

Categories Q&A, Unix & Linux Tags filenames, files, filesystems, sort Leave a comment

Sort using custom pattern

August 8, 2022 by Magenaut

Is there a way to output file’s contents using custom patterns?

Categories Q&A, Unix & Linux Tags sort Leave a comment

Strange default sort behaviour

August 7, 2022 by Magenaut

I have some trouble to understand what is happening here:

Categories Q&A, Unix & Linux Tags locale, sort Leave a comment

Specify the sort order with LC_COLLATE so lowercase is before uppercase

August 7, 2022 by Magenaut

Given the file:

Categories Q&A, Unix & Linux Tags linux, sort Leave a comment

join : “File 2 not in sorted order”

August 7, 2022 by Magenaut

I’ve got two files _jeter3.txt and _jeter1.txt

Categories Q&A, Unix & Linux Tags join, sort Leave a comment

How to sort the string which combined with string + numeric using bash script?

August 7, 2022 by Magenaut

This is the data what I want to sort. But sort treats the numeric to string, the data it no sorted as I expected.

Categories Q&A, Unix & Linux Tags bash, shell-script, sort, text-processing Leave a comment

Scalability of ‘sort -u’ for gigantic files

August 7, 2022 by Magenaut

What is reasonable scalability limit of sort -u?
(in dimensions of “line length”, “amount of lines”, “total file size”)

Categories Q&A, Unix & Linux Tags performance, sort Leave a comment

Why is sort -o useful?

August 6, 2022 by Magenaut

UNIX philosophy says: do one thing and do it well. Make programs that handle text, because that is a universal interface.

Categories Q&A, Unix & Linux Tags sort, unix-philosophy Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 … Page6 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress