//*
Core differences between Watts and Volt-Amps
Read note:
*//
del is the name of the script and it is executable. The directory named trash is just the name of the directory where I put the files, I call it trash because wastebasket is so MS.
Larry
Message
>thanks freind.
>
>but whats del means; is a alias of rm or what?and how you can do the relation between del and a directory trash?
>
>thanks agian
>
Message
>>I don't know why your script doesn't work but here is one that I use, I call it del for delete and so I don't get it confused with rm:
>>
This command is to put files in a directory
so that I can be sure that I want to delete them
First I will define trash
>>trash=/usr/users/alexisl/trash
now I will date stamp the files
>>touch $*
and move the files to trash
>>mv $* $trash
>>
>>It works pretty good, here is my trash directory before:
>>
>>ls -l trash
>>total 8
rw-r 1 alexisl users 259 Nov 03 2005 fin_scholarship_amt.sql.old
rw-r 1 alexisl users 0 Nov 03 2005 trash.log
>>
>>Then I ran the del
>>
>>del fatr_done
>>
>>Here is the trash directory now:
>>
>>ls -l trash
>>total 16
rwxr-xr-x 1 alexisl users 68 May 10 07:07 fatr_done
rw-r 1 alexisl users 259 Nov 03 2005 fin_scholarship_amt.sql.old
rw-r 1 alexisl users 0 Nov 03 2005 trash.log
>>
>>Hope this helps
>>Larry
>Message
hello freinds,
i want to creat a wastebasket,to gather the files which we remove in unix (like windows), but this script which i made in .kshrc dont work;
Poubelle ou WasteBasket
export PUBELLE=${HME}/.wastebasket
function myrm {
mv $* $PUBELLE
}
alias rm=myrm
alias vide-poubelle '/bin/rm -fr {PUBELLE}; mkdir ${PUBELLE}'
alias eboueur vide-poubelle
and when i made vide-poubelle or eboueur, its not creat a directory PUBELLE.
please there is some one who know how i can do it.
thanks,
regards
>>
>>
>
>
//* RESURCES FR THIS GRUP
View :
Manage Account/Group Tips:
Wiki:
Leave This Group: mailto:leave-ibm-aix-l (AT) Groups (DOT) ITtoolbox.com
Copyright (c) ITtoolbox and message author. No redistribution.
*//