![]() |
|
|
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 |
| Searching all files that contain pattern | ravi.sadani19 | Shell Programming and Scripting | 4 | 11-29-2008 06:52 PM |
| Pattern searching pattern in c files | murthybptl | Shell Programming and Scripting | 6 | 11-17-2007 09:15 AM |
| How to use cat command in sed pattern searching | Sona | UNIX for Dummies Questions & Answers | 4 | 08-22-2006 10:05 AM |
| Searching for a pattern in a Directory | gandhevinod | Filesystems, Disks and Memory | 1 | 02-25-2005 08:35 AM |
| pattern searching using C | giannicello | High Level Programming | 1 | 04-16-2002 01:53 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Regarding Searching Pattern
Hi Guys,
Can you help with the shell script: I would like to search a fixed width pattern from a file say for each line from a fixed position and lenght it has to return all rows from the file. Example: To search the third column for "def" it has to return 1 and 4th rows only 1|abc|def|hgd|sda|XYZ|sdd 2|FSD|sdf|fds|def|ads|XYZ 3|has|sdg|ret|def|asd|SDF 4|fsd|def|gsh|def|hjf|6545 5|sdf|hdf|def|fdg|8747389|736 6|def|dfs|dsg|def|837|dsg"|388 I have tried using "awk" is there a way we can combine substr and awk. Thanks in advance. Sat. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|