Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ArdeshirV/NumericFileSort

Python script that sorts text file lines by floating point number at the start of each line of file. You can use it with a file as argument or with stdin with regular commands output.
https://github.com/ArdeshirV/NumericFileSort

administration ardeshirv python python-script python3

Last synced: about 2 months ago
JSON representation

Python script that sorts text file lines by floating point number at the start of each line of file. You can use it with a file as argument or with stdin with regular commands output.

Awesome Lists containing this project

README

        

# NumericFileSort
NumericFileSort.py is a useful python script that reads a regular text file as an argument or as a stdin and then sort all file lines by floating numbers that is exists at the start of each line of file. NumericSortFile ignores all white spaces before floating numbers. Lines without numeric prefix will be absent in output.



Usage:




Here you can see a usual Linux command output:
without using numericfilesort


We can sort above output with below command very easily:
without using numericfilesort



Copyright© 2021 [email protected], Licensed under GPLv3+