The Baeldung logo
  • The Baeldung LogoLinux SublogoLinux Sublogo
  • Start Here
  • Courses ▼▲
    • Learn Java Collections

      Explore the Java Collections Framework and Algorithms

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Maven

      Simplify your build with Apache Maven

    • View All Courses

  • Guides ▼▲
    • Administration

      A collection of guides on Linux system administration

    • Scripting

      Basic and advanced scripting on Linux.

    • Networking

      The building blocks for machine-to-machine communication

    • Files

      Deep dive into working with Files on Linux.

    • Processes

      Learn about managing Linux processes and threads

  • Pricing
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • About Baeldung

      About Baeldung.

  • Category upFiles
  • Category upText Processing
  • Category upFile Searching
  • Category upSearch

Tag: sort

Articles on sorting data in Linux using the sort command and related techniques. Covers sorting by single or multiple fields, CSV columns, file creation dates, line counts, and combining sort with other tools like find and grep in text-processing pipelines.

>> Sorting by Two Fields in Linux

>> How to Identify Duplicate Lines in a File Without Deleting Them

>> Equivalent for “Set” Data Structure in Bash

>> How to Move the First “n” Files in Linux

>> Sorting Files According to Creation Dates in Bash

>> How to Sort a CSV File by the Nth Column in Bash

>> How to Compare Floating Point Numbers in Bash

>> How to Display Human-Readable File Sizes in Find Results

>> How to List Files Sorted by the Number of Lines They Contain

>> How to Grep From the End of a File to the Beginning

  • ↑ Back to Top
  • 1
  • 2
  • 3
  • Next →
The Baeldung logo

Categories

  • Scripting
  • Installation
  • Search
  • Web
  • File Editing
  • File Searching
  • File Conversion
  • Docker

Series

  • Linux Administration
  • Linux Scripting Series
  • Linux Files
  • Linux Processes
  • Linux Networking Tutorials
  • Linux Filesystem Guide
  • Linux Security

About

  • About Baeldung
  • Baeldung All Access
  • The Full Archive
  • Editors
  • Our Partners
  • Partner with Baeldung
  • eBooks
  • FAQ
  • Baeldung Pro
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo