I have the same lines, I want to delete the first ... rows, No unique line like I am using sed and notepad ++ I use this regex Try: This works, but only if the line is below each other, But I also have a regex which is possible to detect such strings in the random order? This can work for you (GNU sed): To match the random sort string, go to awk. P> http://www.filefactory.com/file/a181d18/n/...nimal_2010_.rar .
I reach the other ... until the same lines , I want to delete the second same line How do I Can i do
http://rapidshare.com/files/152133956/2005_-_Candlemass.part1.rar (do not delete) http://rapidshare.com/files/152133956/ 2005 ... emass .part1.rar - & gt; Similar (delete) http://www.filefactory.com/file/a181d18/n/...nimal_2010_.rar - & gt; Exclusive (do not delete) http://www.shragle.com/files/9baa908b/Bvdub-The_First_Day-% 2528HN031% 2529-2012.Rar (not delete) http://www.shragle.com/files/9baa908b/Bvdu ... 125252-2012.rar - & gt;
What to search: ((? & Lt; = \ n) | ^) ([^ \ n] {40}) ([^ \ n] * \ n) (. * \ N)? \ 2 [^ \ n] * ($ | \ n) Replace with: \ 2 \ 3 \ 4
Sed ': a; $! N; / ^ \ ([^ \ N] * \) [^ \ n] * \ n \ 1 \. \. \ ./s / \ n * //; Ta; P; Explanation:
: A loop placetend holder
$! N Add a new line to the last line and the next line for the current line.
/ ^ \ ([^ \ n] * \) [^ \ n] * \ N \ 1 \. \. \ ./ Look for duplicate lines nearby.
s / \ n * // Delete the previous row.
ta If the last replacement really goto
a
P Pattern prints the first row in space.
awk '/' 'A.T.S. / {O = $ 0; Sub (/ ASA), ""); One [o] = $ 0; For the next {B [$ 0]} END {for one (X in one) {for (in B) (if (y ~ a [x]) {one x [x]}}} ) Print x; b in b) print x} 'file
Comments
Post a Comment