![]() |
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 |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| assitance with sed (repeating patterns) | metalwarrior | UNIX for Dummies Questions & Answers | 7 | 02-02-2008 05:14 AM |
| Repeating variables in the code | mahalakshmi | Shell Programming and Scripting | 1 | 02-08-2007 07:33 AM |
| Repeating commands in a script | Dave2874 | Shell Programming and Scripting | 4 | 03-14-2005 10:34 AM |
| Omit repeating lines | TheCrunge | UNIX for Dummies Questions & Answers | 6 | 02-22-2005 06:26 PM |
| Filter out repeating messages | antalexi | SUN Solaris | 2 | 01-31-2005 02:19 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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)" |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|