Re: [Dorset] Links from 2012-08-07's Pub Meeting.

2012-08-13 Thread Tim Waugh
On Sat, 2012-08-11 at 16:35 +0100, Ralph Corderoy wrote: Does my `Unguessable123' password exist anywhere on the disk? May throw up false positives by design to avoid the act of searching from creating what's being searched for. LC_ALL=C grep -boa 'Un..bl...3' /dev/sda I tend to put a

Re: [Dorset] Links from 2012-08-07's Pub Meeting.

2012-08-13 Thread Ralph Corderoy
Hi Tim, I tend to put a letter in its own bracket expression to avoid the search itself showing up as a result. e.g. ps axf | grep '[f]irefox' Right, though we've also pidof(1) now to help. It doesn't tend to matter with ps's output since it's small but grep on my machine doesn't spot a

Re: [Dorset] Links from 2012-08-07's Pub Meeting.

2012-08-13 Thread Victor Churchill
On 13 August 2012 15:05, Ralph Corderoy ra...@inputplus.co.uk wrote: $ by3() { sed -rn ' h; s/[^147258]//g; y/147258/aaabbb/ :l; s/ab//g; s/ba//g; tl G; s/^\n//p ' $@ } I must have missed this conversation. I looked at