- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Echo with grep command and concatenation
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
тАО11-03-2010 06:56 AM
тАО11-03-2010 06:56 AM
In my script this.
echo $VX "Errors: "
echo "$spout" | grep -i "ORA-"
The result is (Example)
TEST1DB Failed
ORA-01109: database not open
How to have this on the same line and including "(" ")":
TEST1DB Failed (ORA-01109: database not open)
Any idea ?
Bests Regards
Den
Solved! Go to Solution.
- Tags:
- echo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2010 07:01 AM
тАО11-03-2010 07:01 AM
Re: Echo with grep command and concatenation
echo $VX "Errors: \c"
echo $spout" | grep -i "ORA-"
As for the parentheses, if they are in the string you are grepping for, they should be included.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2010 08:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2010 10:33 AM
тАО11-03-2010 10:33 AM
Re: Echo with grep command and concatenation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2010 12:07 PM
тАО11-03-2010 12:07 PM
Re: Echo with grep command and concatenation
> OK with answer
Good, but please don't forget to assign points when you are happy with the responses you have received. To reopen your thread to assign points:
http://forums.itrc.hp.com/service/forums/helptips.do?#41
http://forums.itrc.hp.com/service/forums/helptips.do?#28
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2010 07:33 AM
тАО12-21-2010 07:33 AM
Re: Echo with grep command and concatenation
IN the fire of the action sometime I missed to go back for points immediately. because tests, because something but I always attribute on last posts
Thanks for your help, it's always very appreciate for me.
Have a good Xmas
Bests Regards
Den