![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| search pattern in a string and rename | deepakgang | UNIX for Dummies Questions & Answers | 6 | 06-02-2008 01:43 AM |
| SED Search Pattern and Replace with the Pattern | racbern | Shell Programming and Scripting | 4 | 03-15-2008 05:59 AM |
| Search for a pattern from the result of search | boopathi_d | Shell Programming and Scripting | 3 | 12-05-2007 09:54 AM |
| Search Mulitiple String pattern in a file | krishnan_6015@y | Shell Programming and Scripting | 2 | 11-23-2007 04:03 AM |
| Search file for pattern and grab some lines before pattern | frustrated1 | Shell Programming and Scripting | 2 | 12-22-2005 03:41 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Advance string pattern search Please
Here is my problem..
1. I want to search all those files with file name starting AJ128**** (in all the sub directories also) 2. I want to search for the follwoing type of string line beging with string - 'AK*any_1_char*any_2_char*510' 3. I need to display list of file names 4. I need to display total number of files that have the above string Thanks for the help in advance. I am using sun solaris. |
|
||||
|
Yogesh.. Thanks for the reply..
any_1_char mean = > it can be Y or N or 1 etc any_2_char means => it can be 18, 21, 01.. etc So for the follwing 'AK*any_1_char*any_2_char*510', I am using regular expression. Like below. find . -name AJ128\* -exec /usr/xpg4/bin/grep -il -E 'AK\*N\**\*510' {} \; | wc -l But it was not working. 1. And I want to retrieve all file names with all the conditions 2. And I want to retrieve total no of files with all the conditions Thanks for the help.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|