digital adj. Having digits.     peer n. A comrade; a companion; a fellow; an associate. a.k.a. GEEKED    
   
Recent Articles
Mount JFFS2 Image
Saturday, October 25, 2008
Ottawa Linux Symposium 2008
Sunday, July 27, 2008
Here are some pictures from the 2008 Linux Symposium.
Linux Symposium 2008
Sunday, July 20, 2008
I'll be attending the Linux Symposium this year.
Clay Shirky: Institutions vs. collaboration
Monday, July 14, 2008
This is a rather interesting talk that takes some very foundational ideas from open source software development, P2P networks, and social networking and implies that these paradigms can apply to a lot more.
Fremont Street
Sunday, July 29, 2007
Remote Control Dragonfly
Sunday, July 29, 2007
Videos
Sunday, July 29, 2007
Assortment of videos.
Honda CBR F4 Carburetor Cleaning
Monday, July 23, 2007
Details on how to clean F4 carburetors.

A year spent in artificial intelligence is enough to make one believe in God.
- Alan J. Perlis - Epigrams of Programming

Projects-Misc Scripts-rm Command...

rm Command Replacement Using a Trash Folder

Sunday, January 9, 2005 by digitalpeer

#!/bin/bash
#
# This is an rm replacement to use a trash folder.
#
if [ ! -d $HOME/.junk ]
then
    mkdir $HOME/.junk
fi

case $1 in
-l)
    ls -l $HOME/.junk
    ;;
-p)
    rm $HOME/.junk/*
    ;;
*)
    for VAR in $*
    do
        mv $VAR $HOME/.junk/$VAR
    done
esac


Submit Comment to This Article - Be the first!
Please post a comment if you have something to add, find something wrong, or would like more information on the topic at hand. Do not use the comment form to contact the author about unrelated concerns!

Name: Email (optional):
Enter verification number here: