- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Scripting issue - 2
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
тАО01-16-2006 01:41 AM
тАО01-16-2006 01:41 AM
I have a file called file1 as below:
#more file1
passwd.hp_sap_is_tmp@bdhp4297:cane*p:UNKN APP,C/O THYS/DT,NL,,
passwd.hp_sap_is_tmp@bdhp4337:cane*p:UNKN APP,C/O THYS/DT,NL,,
passwd.hp_sap_is_tmp@bdhp4338:test:UNKN APP,C/O THYS/DT,NL,,
When I tried to grep "cane*p" using command #grep "cane*p" file1 or #grep 'cane*p' file1, it gave me nothing.
How can I grep "cane*p" from file1, so the output will be as below:
passwd.hp_sap_is_tmp@bdhp4297:cane*p:UNKN APP,C/O THYS/DT,NL,,
passwd.hp_sap_is_tmp@bdhp4337:cane*p:UNKN APP,C/O THYS/DT,NL,,
Please help.
Thanks and Best Regards,
Dewa
Solved! Go to Solution.
- Tags:
- grep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2006 01:46 AM
- Tags:
- quoting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2006 01:50 AM
тАО01-16-2006 01:50 AM
Re: Scripting issue - 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2006 01:51 AM
тАО01-16-2006 01:51 AM
Re: Scripting issue - 2
grep -F 'cane*p' file1
should work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2006 02:01 AM
тАО01-16-2006 02:01 AM
Re: Scripting issue - 2
grep "cane\*p" file1
HTH,
Art