Posterous
Aniq is using Posterous to post everything online. Shouldn't you?
1074736_thumb
 

Aniq started this...

Imma let you finish.

« Back to blog

shell/bash script to show all unique extensions in a directory

needed this for something today and it ended up not being in google -
hopefully this helps someone

files=(*.*); oifs=$IFS IFS=$'\n'; echo "${files[*]##*.}" | sort -u; IFS=$oifs

Loading mentions Retweet
 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    Connect    twitter