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

Home -> Community -> Usenet -> c.d.o.server -> Re: Control Chars in Filename

Re: Control Chars in Filename

From: Karsten Farrell <kfarrell_at_belgariad.com>
Date: Mon, 04 Nov 2002 16:47:17 GMT
Message-ID: <pwxx9.1514$zJ7.102339823@newssvr21.news.prodigy.com>


Matthias Rogel wrote:
> I prefer
>
> find . -name "abc*" -type f -ok rm {} ';'
>
> mr
>
> Eric Parker wrote:
>

>> Another solution (assuming the filename is "abc<unknown 
>> characters>xyz.dbf")
>> is to enter
>>
>> rm -i abc*xyz.dbf
>>
>> then pressing y or n appropriately as prompted.
>>
>> eric

One thing to note: these two will act differently if you have subdirectories under your current directory. The 'find' will recurse subdirectories; the 'rm' will not. That makes the 'find' command potentially dangerous as it goes about removing more than you thought ... or since you have the '-ok', having to respond to more questions. Received on Mon Nov 04 2002 - 10:47:17 CST

Original text of this message

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