From: Rudolf Polzer Date: 2002-12-08T16:42:25+09:00 Subject: Re: Thank God for backups Scripsit ille aut illa Gavin Sinclair : > From: "Rudolf Polzer" > > /usr/local/bin/recycle: > > | #!/bin/sh > > | > > | mkdir -p "$HOME/.recycled" > > | > > | for x in "$@"; do > > | if [ "`echo "$x" | cut -f 1 -d /`" != '' ]; then > > | x="`pwd`/$x"; > > | fi > > | y="`echo "$x" | sed 's/-/-_/g;s/\//--/g'`" > > | mv "$x" "$HOME/.recycled/$y" > > | done > > > > ..bashrc: > > | alias rm=recycle > > Nice. CAn we have that in Ruby, please? :) Of course, especially because the current version is unclean (it doesn't remove unwanted characters from file names, moves files from one partition to another and uses too many external tools). But how do I find the mountpoint from a device number returned by File::stat? -- [mpg123d] Just playing: .../albums/vintage/a/09 hesitation.mp3 Quatsch wird immer qu�tscher, bis er quietscht.