![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| check for a particular character inside a file and substitute with a given character? | karthikprasathk | AIX | 1 | 07-01-2008 04:29 AM |
| How ro handle backslash character in grep? | rajbal | Shell Programming and Scripting | 1 | 06-18-2007 09:19 PM |
| Non-ascii character detection (perl or grep) | srinivasan_85 | UNIX for Dummies Questions & Answers | 9 | 02-20-2007 08:38 AM |
| Grep for X character on a word | jjoves | UNIX for Dummies Questions & Answers | 5 | 08-06-2004 06:14 AM |
| GREP a string with NULL Character | weerich | UNIX for Dummies Questions & Answers | 3 | 09-18-2001 02:30 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
grep with wilcard character(*)
Hello people,
I am trying to grep out a certain pattern from some files. The situation is like this: constantstring1<random data>constantstring2 I am using the following command (which clearly is not working!!!): datestring=<some date in YYYYMMDD format> searchstring=$datestring"*_xyz" grep -hc $searchstring a.txt Can you also be kind enough to give a short explanation for the solution? Thanks a lot. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|