Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I typed "rm /tmp/ *"

Name: Anonymous 2012-08-28 5:32

And the Unix filth did it. Without moving files to trash can. And there is no way to get anything back, because WORSE IS BETTER and the the shitty Unix unlinks everything even when filesystem has enough free space. Why? Why Unix cant die and be replaced with a good OS?

Name: Anonymous 2012-08-28 6:09

>>6

if you don't want to shoot yourself in the foot, then don't kill weeds using a shot gun. Use weed spray instead. But if by chance a wolf surprises you, you may have trouble fending it off with weed spray.


#!/bin/sh

TRASH=~/.trash
TIME_STATE_FORMAT=%s
TIME_STAMP=`date +$TIME_STATE_FORMAT`

while [ -n "$1" ]; do
  # todo, test for ability to move file, $1, and emit error message if unable.
  mv $1 $TRASH/$1.$TIME_STAMP
  shift
done

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List