![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a menu | yoavbe | Shell Programming and Scripting | 4 | 02-08-2008 11:18 AM |
| Creating a menu from find | markrj | Shell Programming and Scripting | 3 | 01-22-2008 12:50 PM |
| Creating a menu within a script file | sinjin | Shell Programming and Scripting | 8 | 12-10-2007 01:18 AM |
| how to permanently modify the open files | 3rr0r_3rr0r | UNIX for Dummies Questions & Answers | 2 | 01-23-2007 12:40 AM |
| Creating menu list from configuration file | nir_s | Shell Programming and Scripting | 8 | 01-11-2006 03:45 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Trying to alias rm to move files to a hidden trash directory in the bash shell. I've tried to create this alias numberous ways and it's just not working. Here's what I've tried, anyone have any suggestions.
alias rm='mv $* ~/.trash' alias rm= 'mv$* ~/.trash' things like that... I've also tried creating a function called my_rm_script that contains just the "'mv ..." part of the above. None of it works! I've about lost patience with it. The concept is to create an undelete function: an alias for rm to place "deleted" files in a trash folder give an option to recover files from the trash folder and a destroy function that basically unaliases rm briefly so that the files that are chosen to be deleted are permanently deleted from the ~/.trash folder. Help Please?!?!?! ![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|