- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Appending the file contents to a ksh variable (HP-...
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
тАО03-29-2005 05:02 PM
тАО03-29-2005 05:02 PM
Is this supported?
Below is a copy and past from my command line:
_________
daavid> fred="testing one two three"
daavid> echo $fred
testing one two three
daavid> fred="$fred `cat messages.config`"
daavid> echo $fred
critical 414wo three SourceID 25
daavid> cat messages.config
SourceID 25
warning 411
critical 414daavid>
Solved! Go to Solution.
- Tags:
- command substitution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2005 05:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2005 05:16 PM
тАО03-29-2005 05:16 PM
Re: Appending the file contents to a ksh variable (HP-UX)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2005 05:16 PM
тАО03-29-2005 05:16 PM
Re: Appending the file contents to a ksh variable (HP-UX)
# echo $fred
testing one two three SourceID 25 warning 411
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2005 05:29 PM
тАО03-29-2005 05:29 PM
Re: Appending the file contents to a ksh variable (HP-UX)
___________
daavid > echo "This is from a file" > file.tmp
daavid > fred="Testing variable fred"
daavid > echo $fred
Testing variable fred
daavid > cat file.tmp
This is from a file
daavid > fred="$fred `catfile.tmp`"
ksh: catfile.tmp: not found
daavid > fred="$fred `cat file.tmp`"
daavid > echo $fred
Testing variable fred This is from a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2005 10:25 AM
тАО03-30-2005 10:25 AM