(05-29-2012, 01:47 PM)M@LIK Wrote:Pixel Wrote: So, how would sed delete all lines that don't have at least one or more duplicate character any where in the whole line?
This can be done using the command below, add it, slow it, love it xD:
Code:/\(.\).*\1/!d
Thanks M@LIK, what would it be in regular expression?
I've tried (.).*\1/! and (.).*\1! but it don't work, Im guessing it has something to do with that exclamation mark at the end.
Yes Hash-IT I know it will remove too much, only doing it to get abit more of an understanding of sed and regular expression as they are very similar and powerful tools, plus just to see what happens.
(05-29-2012, 01:47 PM)M@LIK Wrote:Pixel Wrote: I over looked this, well spotted ntk. We should include this.
Code:/\(DCBA\|EDCB\|FEDC\|GFED\|HGFE\|IHGF\|JIHG\|KJIH\|LKJI\|MLKJ\|NMLK\|ONML\|PONM\|QPON\|RQPO\|SRQP\|TSRQ\|UTSR\|VUTS\|WVUT\|XWVU\|YXWV\|ZYXW\)/d
also it this the right command?
These kind of command slow it the most! That's why I said I can't do it in the first place (When you asked for alphabetical order rule).
I suppose I could use ULM to remove these...
(05-29-2012, 02:07 PM)Hash-IT Wrote:(05-29-2012, 01:47 PM)M@LIK Wrote: According to this : "AMD dual core 3GHz" It's your CPU : (
I'm on i7 2.4, I can generate 1GB within couple of hours.
Oh dear and I thought this was a good one !! It looks like I am out of the game chaps as I cannot generate these lists in a reasonable time. I would love to know how come the new processors are so much faster !
It looks like I'm not the only one that needs to upgrade their computer in some way. hehe
Think we should scrap this one... Like M@LIK said it slows it down too much.
Code:
/\(ABCD\|BCDE\|CDEF\|DEFG\|EFGH\|FGHI\|GHIJ\|HIJK\|IJKL\|JKLM\|KLMN\|LMNO\|MNOP\|NOPQ\|OPQR\|PQRS\|QRST\|RSTU\|STUV\|TUVW\|UVWX\|VWXY\|WXYZ\)/d
Got another password it's QVHHRIRA got this from a friend, I have seen it so it is real. Tested it and it got striped out again, so we need to loosen the filter abit more so that there is no more than 2 instances of a duplicate character.
M@LIK could you tell me which command I need to change so it will include this?
guessing its this one...
Code:
/\(.\).*\1.*\(.\).*\2/d