From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Packages for file-finding & disk-usage Date: Mon, 19 Jan 2015 01:46:20 +0000 Message-ID: <87iog3mtjn.fsf@robertthorpeconsulting.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421631999 11853 80.91.229.3 (19 Jan 2015 01:46:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Jan 2015 01:46:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 19 02:46:39 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YD1QM-0005K8-GW for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Jan 2015 02:46:38 +0100 Original-Received: from localhost ([::1]:35205 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YD1QL-0007Wv-JR for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Jan 2015 20:46:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YD1QA-0007Wo-EI for help-gnu-emacs@gnu.org; Sun, 18 Jan 2015 20:46:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YD1Q7-0000NW-81 for help-gnu-emacs@gnu.org; Sun, 18 Jan 2015 20:46:26 -0500 Original-Received: from outbound-smtp03.blacknight.com ([81.17.249.16]:46737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YD1Q7-0000NJ-1b for help-gnu-emacs@gnu.org; Sun, 18 Jan 2015 20:46:23 -0500 Original-Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp03.blacknight.com (Postfix) with ESMTPS id 85A1A98A6D for ; Mon, 19 Jan 2015 01:46:21 +0000 (UTC) Original-Received: (qmail 943 invoked from network); 19 Jan 2015 01:46:21 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[109.76.134.198]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 19 Jan 2015 01:46:21 -0000 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.16 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102146 Archived-At: I'm looking for two packages. I don't know if anything exists for these use cases: * HTML dependency finding. I often write webpages. I work by saving files in a tree of directories used by a web-server. Given "Foo" in a HTML file, I'd like to be able to easily tell if foo.html exists. For example to put point on it and see a message in the echo area like "file exists" or "file not found". Is there a package to do that? * Disk usage. I'm looking for a tool to monitor disk-usage. I want to know things like how much space the files in a particular directory take up. Also, what type of files use what amount of space. Is there a way of doing that within Emacs? BR, Robert Thorpe From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: Packages for file-finding & disk-usage Date: Tue, 20 Jan 2015 11:16:40 +0000 Message-ID: <87zj9dwvl3.fsf@skimble.plus.com> References: <87iog3mtjn.fsf@robertthorpeconsulting.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1421752637 18314 80.91.229.3 (20 Jan 2015 11:17:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2015 11:17:17 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Robert Thorpe Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 20 12:17:17 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YDWo8-0003sI-Ih for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Jan 2015 12:17:16 +0100 Original-Received: from localhost ([::1]:42710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDWo7-0004YR-Nd for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Jan 2015 06:17:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDWnn-0004VY-Fa for help-gnu-emacs@gnu.org; Tue, 20 Jan 2015 06:16:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDWnj-0000NH-Df for help-gnu-emacs@gnu.org; Tue, 20 Jan 2015 06:16:55 -0500 Original-Received: from avasout04.plus.net ([212.159.14.19]:41581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDWnj-0000M7-7o for help-gnu-emacs@gnu.org; Tue, 20 Jan 2015 06:16:51 -0500 Original-Received: from london.london ([87.112.177.213]) by avasout04 with smtp id iBGm1p0064ce27K01BGn8b; Tue, 20 Jan 2015 11:16:47 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=Ev9crEsA c=1 sm=1 tr=0 a=CO408u/nPAOWu5Evuu2c3Q==:117 a=CO408u/nPAOWu5Evuu2c3Q==:17 a=0Bzu9jTXAAAA:8 a=acKW_TVRZv8A:10 a=EBOSESyhAAAA:8 a=LlzXLoV6AAAA:8 a=xtERp6CFAAAA:8 a=iI7HsYTVAAAA:8 a=MkbplUMsXXBur9zGneoA:9 a=Po6i-2cFUnHWNQZ7:21 a=gf7Gpks7lVTAWtoW:21 a=SAUzW56TFbwA:10 a=NWVoK91CQyQA:10 a=uAHSx92pwTZ3r7txBnUA:9 X-AUTH: skimble@:2500 In-Reply-To: <87iog3mtjn.fsf@robertthorpeconsulting.com> (Robert Thorpe's message of "Mon, 19 Jan 2015 01:46:20 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 212.159.14.19 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102169 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > I'm looking for two packages. I don't know if anything exists for these > use cases: > > * HTML dependency finding. > > I often write webpages. I work by saving files in a tree of directories > used by a web-server. Given "Foo" in a > HTML file, I'd like to be able to easily tell if foo.html exists. For > example to put point on it and see a message in the echo area like "file > exists" or "file not found". Is there a package to do that? > > * Disk usage. > > I'm looking for a tool to monitor disk-usage. I want to know things > like how much space the files in a particular directory take up. Also, > what type of files use what amount of space. Is there a way of doing > that within Emacs? > Robert. I use this script, called "backsize", run from a cron job to monitor my bac= kups and seeing their size - =2D-8<---------------cut here---------------start------------->8--- #!/bin/bash # to get back-up directories size file=3D~/cron/backshow if ! >$file; then echo "Error: Access issue while creating file"; exit 1; fi function ComposeFile() { #arg1 friendly_name; arg2 dir size_kb=3D`(du -s $2 | awk '{print $1}') 2>/dev/null`; if [ -n "${size_kb}" ]; then #calculate into gb with 2 floting ponts controlled by scale gb=3D`echo "scale=3D2; $size_kb / 1024 / 1024" | bc -l`; #if you need wider columns change 25 into i.e. 35 printf '%-20s %-20s\n' "$1" "${gb}gb" >> $file fi } # ComposeFile doesnt_exist /dummy ComposeFile obnam-home /media/boudiccas/back1/obnam-home ComposeFile music /media/boudiccas/back1/obnam-back4 sed -i '$!N;s/\n/ /' $file cat $file exit 0; =2D-8<---------------cut here---------------end--------------->8--- This then emails me the results when it runs - =2D-8<---------------cut here---------------start------------->8--- From: root@london (Cron Daemon) Subject: Cron /home/boudiccas/bin/backsize To: boudiccas@localhost Date: Tue, 20 Jan 2015 10:03:42 +0000 (1 hour, 10 minutes, 54 seconds ago) obnam-home 406.64gb obnam-back4 250.72= gb=20 =2D-8<---------------cut here---------------end--------------->8--- Does it help? Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk my git repo =3D https://bitbucket.org/boudiccas/dots TGmeds =3D http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.6, emacs 24.4.1.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJUvjkZAAoJEDaBgBkK+INbnz4P/RYd5i2fX9sO9BURuxZaTOB/ 08v2cMTxveOW99+8njn9f9aEi0ifurrAkH4d86KKQIgNGtQ1QxYO+MmQhHaWdo5K xij7tumY/nW3/YyxRL0WBlC+dXoR2odjGV9qBvHVolAVsKl0eh/EiJIGNTksVXaV 3/b5AV1U9ZlQwAzzXJENsN3eCj2R7XZrkYMBSeGZGu3EPrdPdpH1TtRIj0msYh0b QmWDlohJteRavS+0rsy+zjqcw/8nkn9U+wDPT84ZPjZ/fQUysFZfsrYUfRHHGoYF O349GPuUDjrQMZ1MQFGbuCouqcusaSZalIvS5e6H1OyF970AsXC/DRq8EWHpk7Ug 4u5iREvK875sYGbWr1apqEb6/E9mCPDLPABCDc0ZmNKkmPIV1AonIpa96BxjPyRz HLkZ6I/6llOShe7h3m5xGaMeuZgD9lqIHnQUH+t0hwAXB+BqaQVpslXdAYBDxfxl VKeVoiFgvsHXzfDxVF7KdH+KPZEauO2ftlCwURKaizX2ehcs92REwquA87gvfqsc KyI9gtnK7dCijHp3RJ4a9TRTOsIxDA/VsC6hRFrMKTfbVGvffr2VwLEsWXH3AVSE Ih50xpij4Y5oaxCi2XUekPOvkCdcZqxRLgZxNrgnNRjfrTR7bbSiyUY8x0R4by3F TJg2oVJDxwtuL7mr7men =t+Bj -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sokobania.01@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Packages for file-finding & disk-usage Date: Thu, 22 Jan 2015 13:01:45 -0800 (PST) Message-ID: <86a967a7-72b5-4434-8881-fff9f817cb36@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1421960725 2818 80.91.229.3 (22 Jan 2015 21:05:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2015 21:05:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 22 22:05:25 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YEOwN-0002yY-UP for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Jan 2015 22:05:24 +0100 Original-Received: from localhost ([::1]:56055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEOwN-000679-Aj for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Jan 2015 16:05:23 -0500 X-Received: by 10.50.85.18 with SMTP id d18mr27985757igz.3.1421960506584; Thu, 22 Jan 2015 13:01:46 -0800 (PST) X-Received: by 10.140.91.21 with SMTP id y21mr47352qgd.8.1421960506453; Thu, 22 Jan 2015 13:01:46 -0800 (PST) Original-Path: usenet.stanford.edu!hl2no292601igb.0!news-out.google.com!q4ni0qan.0!nntp.google.com!bm13no2356437qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2.14.44.10; posting-account=6AmU8QoAAABkSb2sbJisGlnlR_egh2hP Original-NNTP-Posting-Host: 2.14.44.10 User-Agent: G2/1.0 Injection-Date: Thu, 22 Jan 2015 21:01:46 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:209938 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102217 Archived-At: Le lundi 19 janvier 2015 02:46:31 UTC+1, Robert Thorpe a =E9crit=A0: > I'm looking for two packages. I don't know if anything exists for these > use cases: >=20 > * HTML dependency finding. >=20 > I often write webpages. I work by saving files in a tree of directories > used by a web-server. Given "Foo" in a > HTML file, I'd like to be able to easily tell if foo.html exists. For > example to put point on it and see a message in the echo area like "file > exists" or "file not found". Is there a package to do that? In the file ffap.el, there is a function called "find-file-at-point" which = I usually bind to C-x C-f So, when I click inside a filename and press C-x C-f, if the file exists, t= hen I see it in the minibuffer. The real job is done by the functions called by "ffap-guesser".