The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
man aliases Pipa UNIX for Dummies Questions & Answers 2 09-19-2007 03:55 AM
retireving ip aliases caltiger High Level Programming 2 09-15-2006 10:36 PM
aliases BG_JrAdmin UNIX for Dummies Questions & Answers 1 11-30-2005 08:53 PM
aliases mluey61 High Level Programming 1 04-19-2005 08:30 AM
Sendmail / Aliases ComTec UNIX for Dummies Questions & Answers 1 03-17-2001 02:35 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-03-2006
Registered User
 

Join Date: Sep 2006
Posts: 7
adding a new alias to Aliases

when we invoke a line we write
alias aliasname " "
but i have on the original line "specific string" so it must be
alias aliasname " "specific string" "
and it cause me trouble what can i do ?
Reply With Quote
Forum Sponsor
  #2  
Old 09-03-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,297
alias is normally a command, not a quoted string..? try
Code:
alias aliasname="\"specific string\""
specific string could be also surrounded by single-quote double-quote specific double-quote single-quote string
Code:
aliasname='"specific string"'
Reply With Quote
  #3  
Old 09-05-2006
Registered User
 

Join Date: Sep 2006
Posts: 7
i ment something like this

alias mine "/.../xsimphone 'name of phone' -f "

i think the ' ' string prevent me to run this alias
Reply With Quote
  #4  
Old 09-05-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,297
Code:
alias mine='/.../xsimphone "name of phone" -f '
swap ' and " characters....
Reply With Quote
  #5  
Old 09-06-2006
Registered User
 

Join Date: Sep 2006
Posts: 7
Thumbs up Thank for you help !!! it works !!!

I will be happy if you can elaborate your explanation
Reply With Quote
  #6  
Old 09-06-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,297
see the example - it is what you gave with different placement of ' and " characters
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:45 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0