Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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.
- Host: GitHub
- URL: https://github.com/ArdeshirV/NumericFileSort
- Owner: ArdeshirV
- License: gpl-3.0
- Created: 2021-01-23T13:07:24.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-25T11:53:56.000Z (over 3 years ago)
- Last Synced: 2024-06-28T14:36:35.770Z (5 months ago)
- Topics: administration, ardeshirv, python, python-script, python3
- Language: Python
- Homepage:
- Size: 324 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:
We can sort above output with below command very easily:
Copyright© 2021 [email protected], Licensed under GPLv3+