- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- 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
Forums
Discussions
Discussions
Forums
Discussions
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
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