The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-27-2009
glamo_2312 glamo_2312 is offline
Registered User
  
 

Join Date: Sep 2008
Location: INDIA
Posts: 19
Question How to create multiple word alias

Hi,

I have created a script which will move the file passed as $1 to a particular folder.

In the .profile of my unix user i have created an alias as

alias rm="$HOME/script"

Now i want that to do

alias rm="$HOME/script"

alias \rm="$HOME/script"

alias \rm -rf ="$HOME/script"

alias rm -rf ="$HOME/script"


It does not take rm -rf as ab alias.
How to do this.