![]() |
|
|
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 |
| Help removing lines with duplicated columns | yahyaaa | Shell Programming and Scripting | 14 | 05-17-2008 08:33 AM |
| remove duplicated columns | kamel.seg | Shell Programming and Scripting | 6 | 02-21-2008 07:36 AM |
| Can root ID be duplicated | lorcan | UNIX for Advanced & Expert Users | 6 | 06-16-2007 12:06 AM |
| grep and delete 2nd duplicated of txt... -part2 | happyv | Shell Programming and Scripting | 16 | 01-19-2007 05:40 AM |
| Log files duplicated themselves? | DISTURBED | UNIX for Dummies Questions & Answers | 4 | 07-01-2002 10:54 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
using sed to get rid of duplicated columns...
I can not figure out this one, so I turn to unix.com for help, I have a file, in which there are some lines containing continuously duplicate columns, like the following
adb abc abc asd adfj 123 123 123 345 234 444 444 444 444 444 23 and the output I want is adb abc asd adfj 123 345 234 444 23 Is it possible using sed to do this? oh, btw, I thought this should work, sed 's/(\([^ ]\)+ )+/\1/' file , but it does not... Last edited by fedora; 04-10-2008 at 04:53 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|