sort directory by version numbers
# Assuming you have a list of versions like v1.6.23 in a test.txt file
# You can sort it by the following command
sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n test.txt
## From a file with versions
## v1.0.15
## v1.0.9
## v1.0.3
## v1.0.1
## v1.0.5
## v1.0.10
## v1.0.4
## v1.0.6
## v1.0.2
## You get the following
## v1.0.15
## v1.0.10
## v1.0.9
## v1.0.6
## v1.0.5
## v1.0.4
## v1.0.3
## v1.0.2
## v1.0.1
Also in C++:
- install angular bootstrap
- problem with dependency and installation mariadb-server in ubuntu server 18.04LTS
- composer install package with specific version
- git clean fdx
- Installation failed: Download failed. Destination directory for file streaming does not exist or is not writable.
- net::ERR_ABORTED 431 (Request Header Fields Too Large)
- npm uninstall
- reinstall all tables doctrine
- bash provide path to same dir as executable
- How to Install Julia on Ubuntu
- laravel/sail
- how to perform an action for each line in bash
- check octet permission ubuntu
- install mdbreact cdn
- bootstrap color
- how to see pip installed packages
- bash write stderr to file
- arch jpg to png
- raspberry pi root password reset
- git stash pop index
- add upstream branch git
- bash variable in string
- How to replace a string in multiple files in linux command line
- command to create a new branch in git