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
Stripping the spaces in a string variable rag84dec Shell Programming and Scripting 3 03-27-2008 12:16 AM
adding spaces for a variable value dnat Shell Programming and Scripting 2 02-26-2008 02:32 AM
appending spaces to a variable rallapalli Shell Programming and Scripting 2 08-12-2007 10:23 PM
spaces trimming while assigning to a variable Lokesha SUN Solaris 2 06-06-2006 11:09 PM
Strip leading and trailing spaces only in a shell variable with embedded spaces jerardfjay Shell Programming and Scripting 6 03-07-2005 11:24 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-18-2005
Registered User
 

Join Date: Aug 2005
Posts: 20
Variable containing spaces

Hi,
my var is:
PATH_LOG=/opt/WebSphere/CR Comune Roma.log
a filename which contains blank chars.

How can I call it from prompt ?

Ex:

ls $PATH_LOG or
cat $PATH_LOG

tks,
Carmen-
Reply With Quote
Forum Sponsor
  #2  
Old 08-18-2005
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,029
ls "$PATH_LOG"
cat "$PATH_LOG"
Reply With Quote
  #3  
Old 08-18-2005
Registered User
 

Join Date: Aug 2005
Posts: 20
cool !!
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 05:09 AM.


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