- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Adding a string
Operating System - Linux
1752786
Members
5820
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2005 05:50 AM
тАО10-07-2005 05:50 AM
Adding a string
Red Hat Enterprise Linux 3.0
I issue this line to append the text to the .bash_profile file.
echo "export ORACLE_DOC=$ORACLE_HOME/doc" >> .bash_profile
But if change the "$ORACLE_HOME" and put the value of this variable, which is nothing in the moment the command executes.
How can I add the text "$ORACLE_HOME" as simple string (not its value)?
I issue this line to append the text to the .bash_profile file.
echo "export ORACLE_DOC=$ORACLE_HOME/doc" >> .bash_profile
But if change the "$ORACLE_HOME" and put the value of this variable, which is nothing in the moment the command executes.
How can I add the text "$ORACLE_HOME" as simple string (not its value)?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2005 06:42 AM
тАО10-07-2005 06:42 AM
Re: Adding a string
No that sure but see if this works...
echo export ORACLE_DOC="$ORACLE_HOME"/doc >> .bash_profile
Regards,
echo export ORACLE_DOC="$ORACLE_HOME"/doc >> .bash_profile
Regards,
You need to know a lot to actually know how little you know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2005 07:14 AM
тАО10-07-2005 07:14 AM
Re: Adding a string
Use simple quotation:
echo 'export ORACLE_DOC=$ORACLE_HOME/doc' >> .bash_profile
echo 'export ORACLE_DOC=$ORACLE_HOME/doc' >> .bash_profile
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2005 11:03 PM
тАО10-07-2005 11:03 PM
Re: Adding a string
try this
echo "export ORACLE_DOC=\$ORACLE_HOME/doc" >> .bash_profile
the backslash makes the $ sign a character instead of the shell variable descriptor.
Hope this helps
echo "export ORACLE_DOC=\$ORACLE_HOME/doc" >> .bash_profile
the backslash makes the $ sign a character instead of the shell variable descriptor.
Hope this helps
________________________________
UNIX because I majored in cryptology...
UNIX because I majored in cryptology...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP