![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| concatenate all duplicate line in a file. | vaskarbasak | Shell Programming and Scripting | 30 | 08-29-2008 02:31 AM |
| duplicate line in a text file | nixguy | Shell Programming and Scripting | 5 | 04-28-2008 11:19 PM |
| Remove duplicate entry in one line | kharen11 | UNIX for Dummies Questions & Answers | 5 | 07-05-2007 11:56 AM |
| Identify duplicate words in a line using command | srinivasan_85 | UNIX for Dummies Questions & Answers | 8 | 04-30-2007 10:29 PM |
| Remove Duplicate line | Student37 | UNIX for Dummies Questions & Answers | 1 | 02-22-2005 12:00 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#8
|
|||
|
|||
|
just out of interest, how would i get it down to just the number? i.e. to just:
3661208 thanks ocelot |
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
Quote:
Code:
diff file1 file2 | sort -u | sed -n "/^[<>]/s/^.*\"\([0-9]*\)\"/\1/p" |
|
#10
|
|||
|
|||
|
thanks anbu23. but i keep getting this error? :
Unmatched " |
|
#11
|
|||
|
|||
|
Its working for me.
Try this Code:
sed -n '/^[<>]/s/^.*"\([0-9]*\)"/\1/p' file |
|
#12
|
|||
|
|||
|
thanks that one works.
|
|||
| Google The UNIX and Linux Forums |