From owner-freebsd-questions@FreeBSD.ORG Wed Sep 2 23:44:05 2009 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 214D21065676 for ; Wed, 2 Sep 2009 23:44:05 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (ns1.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id D56338FC13 for ; Wed, 2 Sep 2009 23:44:04 +0000 (UTC) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id n82NguKB021285 for ; Wed, 2 Sep 2009 16:42:56 -0700 (PDT) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Wed, 2 Sep 2009 16:43:31 -0700 (PDT) Date: Wed, 2 Sep 2009 16:43:30 -0700 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20090902234324.GA1735@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 23 years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: Subject: difficult-to-phrase question... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2009 23:44:05 -0000 guys, (of either gender) here's one that is a bit difficult to figure out how to ask, but here's my first shot: i'm looking for a file what contains string "S". the filename in this case has a zillion letters, but that beside the point. i can use grep to find "S" and grep gives me the file[s] that have the string. now, is there any easy way of reading that file, or deleting or otherwise munging that file? nutshell is that every time i reboot (into kde), kde wastes time/cpu spawning unwanted whatever: versions of konqueror, kttsd, ksayit, &c. [[i found these files in ~/.kde/share/config/session, about 20, dated may, 09 to oct 08. rm'ing the bunch would get rid of the instantiate problem, but having a script to diddle with a found string "S" would be useful esp'ly if the filename of pathname were long. i'll mouse swipe the string and fname to prove my point. thanks for any help. gary ps: if scripting this is too grizzly i'll do it in C and do an inline post of src and example use. p4 16:18 [5058] rgr www.h-online ~/.kde/share/config/session ./konqueror_101be1a31b9d1000124363848400000011730067_1243656675_647947:12:ViewT0_URL[$e]=http://www.h-online.com/open/Google-Wave-The-instant-wiki-communicator--/news/113410 -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php 10% slice of my latest novel: http://www.thought.org/10pc