![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| assitance with sed (repeating patterns) | metalwarrior | UNIX for Dummies Questions & Answers | 7 | 02-02-2008 01:14 AM |
| Repeating variables in the code | mahalakshmi | Shell Programming and Scripting | 1 | 02-08-2007 03:33 AM |
| Repeating commands in a script | Dave2874 | Shell Programming and Scripting | 4 | 03-14-2005 06:34 AM |
| Omit repeating lines | TheCrunge | UNIX for Dummies Questions & Answers | 6 | 02-22-2005 02:26 PM |
| Filter out repeating messages | antalexi | SUN Solaris | 2 | 01-31-2005 10:19 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
need assistance: sed and repeating patterns
hi,
I need to write a command with sed to find all the lines in a file that contain patterns of three or more characters that repeat once and put them inside perenthezes. I cannot tell sed what pattern to look for. it should find repeated patterns automatically. example: "firstpatternsecondpattern" would get "first(pattern)second(pattern)" or "1234512345" would get "(12345)(12345)" |
| Forum Sponsor | ||
|
|