'sort' sorts not-numerically, and fixed text width to 80 cols.
authorviric@llimona
Sun, 13 May 2007 22:20:06 +0200
changeset 2 11c4ec7423de
parent 1 9d965b78f426
child 3 5b5abb696426
'sort' sorts not-numerically, and fixed text width to 80 cols.
dm
--- a/dm	Sat May 12 16:09:44 2007 +0200
+++ b/dm	Sun May 13 22:20:06 2007 +0200
@@ -20,8 +20,8 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 #
 # Instructions:
-# 'dm' will manage a list of id-directory. 'dmcd' will allow the current shell to
-# change to the directory given by 'id'.
+# 'dm' will manage a list of id-directory. 'dmcd' will allow the current shell
+# to change to the directory given by 'id'.
 #
 # Examples:
 #  $ dm 1 /tmp   # Adds the id '1' for /tmp
@@ -39,11 +39,10 @@
 #
 # Your directory database is stored in ~/.dm .
 
-
 function showdirs
 {
     if [ -f ~/.dm ] ; then
-        cat ~/.dm | sort -n
+        cat ~/.dm | sort
     fi
 }