Dear reader,

This site finally got its much-needed overhaul. I tried to keep existing pages at their original URLs.
Should you find an error, please do tell me at contact@aspyct.org.
Feel free to visit the new website, which may contain more documentation pertaining to your search.

Thank you for visiting aspyct.org, I hope you'll find what you're looking for.

Old Aspyct.org blog

 or  go to the new site.

shutils

shutil is my personal collection of shellscripts that I use while building my projects. It is available on github. Feel free to leave a comment, create a ticket or do a pull request if you have suggestions :)

natsort

Sorts input lines on stdin in the natural order, as defined by the natsort() function from PHP.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# ls with natsort
$ ls | natsort
file_1.png
file_2.png
file_3.png
file_11.png
file_12.png
file_13.png
file_14.png

# Compared to the default sort order
$ ls | sort
file_1.png
file_11.png
file_12.png
file_13.png
file_14.png
file_2.png
file_3.png

lsort

Equivalent to ls <pattern> | xargs basename | natsort.

1
2
3
4
5
6
7
8
$ lsort /tmp/demo/*.png
file_1.png
file_2.png
file_3.png
file_11.png
file_12.png
file_13.png
file_14.png

shutils_install.sh

Small installer that will add the shutils directory to your path, in the ~/.bash_profile of your user.