Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: UNIX Q: How do I delete files beginning with #

Re: UNIX Q: How do I delete files beginning with #

From: <lembark_at_wrkhors.com>
Date: Wed, 31 Jul 2002 21:38:21 -0800
Message-ID: <F001.004A86A7.20020731213821@fatcity.com>

> Hi,
> I have files like:

># Column
># This
>######### 

>
> How do I get rid of these 3?

escape/quote the char's:

rm -f "./# Column";

or, if you use bash, the tab key is rather helpful for this.

simplest fix may be to:

    cd $somedir/..;
    mkdir _$somedir;
    mv $somedir/[a-zA-Z0-9_]* _$somedir;     rm -rf $somedir;
    mv _$someidr $somedir;

that is: make a scratch directory, fry the original one, and then move the scratch directory in place. This also helps to shrink an over-large directory that may have been populated with large numbers of junk files.     

--
Steven Lembark                              2930 W. Palmer
Workhorse Computing                      Chicago, IL 60647
                                           +1 800 762 1582
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: lembark_at_wrkhors.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Aug 01 2002 - 00:38:21 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US