From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lee Sau Dan Newsgroups: gmane.emacs.help Subject: Re: Hiding passwords in password file? Date: 10 Dec 2002 11:12:58 +0900 Organization: Rechenzentrum der Universitaet Freiburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=cn-big5 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1039492085 11745 80.91.224.249 (10 Dec 2002 03:48:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Dec 2002 03:48:05 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18LbNI-00032e-00 for ; Tue, 10 Dec 2002 04:48:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18LbKj-0006Ui-04 for gnu-help-gnu-emacs@m.gmane.org; Mon, 09 Dec 2002 22:45:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!news.belwue.de!news.uni-freiburg.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: camaro.informatik.uni-freiburg.de User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Original-Xref: shelby.stanford.edu gnu.emacs.help:107915 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:4461 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4461 >>>>> "Felix" == Felix E Klee writes: Felix> Thanks for the suggestion of outline-mode. I tried it out Felix> and also tried outline-magic.el (a nice Felix> improvement). However, it's not perfect since isearch opens Felix> sections that are folded in. So if I'm looking eg. for my Felix> google groups password I might use isearch and type in g o Felix> o g l e. However, the first character, g, might open a Felix> section that I wanted to keep closed. M-! grep ^login: the_large_file to display a list of possible login names. You can i-search in that buffer. After that, M-! awk '/^login: felix/{print $0; ++a; next} /^password:/&&a {print $0; exit 0}' the_large_file -- Lee Sau Dan §õ¦u´°(Big5) ~{@nJX6X~}(HZ) E-mail: danlee@informatik.uni-freiburg.de Home page: http://www.informatik.uni-freiburg.de/~danlee