From: tore@bibsyst.no (Tore Morkemo)
To: rc@archone.tamu.edu (rc list)
Subject: smart rm fn...
Date: Wed, 12 Feb 1992 08:19:14 -0600 [thread overview]
Message-ID: <m0lEJrn-000BTeC@bibsyst.no> (raw)
-- Hei !
I just got the idea of writing a smart rm function but I havent got
too much exeperience in writing rc scripts, maybe one of you rc-gurus
could take this as an exercise.
I don't like the idea of fn'ing rm to move the file to /tmp or
somewhere else ( fn rm {mv $* /tmp} ) since this tend to fill up
/tmp. But I have to admit that I just removed a file that I shouldn't
have removed....:-( So what about this idea:
Make a fn that REMOVES only the files that I never need, like .o files,
and MOVES all the files that ends with .c .h etc. to /tmp.
The file extensions that I would like to move should be put in a
list like :
move_file_extensions=(.c .h .1 .C .cpp)
PS:
Actually I just came up with a better solution to the entire problem,
but I still think it's a good rc exercise and I would like to see
a good solution.....
Tore.
+----------------------------------------------------------------------+
! Tore Morkemo, Bibliotek-Systemer A/S, N-3250 Larvik, Norway !
! uucp: ...!bibsyst.no!tore Tel: +47 34 82 202 !
! tore@bibsyst.no Fax: +47 34 85 185 !
+----------------------------------------------------------------------+
next reply other threads:[~1992-02-12 17:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-02-12 14:19 Tore Morkemo [this message]
1992-02-12 17:34 Byron Rakitzis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m0lEJrn-000BTeC@bibsyst.no \
--to=tore@bibsyst.no \
--cc=rc@archone.tamu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).