Re: [techtalk] Filename star

1999-12-31 Thread coder
Kelly Lynn Martin wrote: > > And even so that's just a function of how ls and the shell behave -- > there's nothing in the kernel that makes a leading dot special. > > The only names that are special as far as the kernel is concerned are > '.' and '..'. > #include void main(){

Re: [techtalk] Filename star

1999-12-31 Thread Kelly Lynn Martin
On Fri, 31 Dec 1999 12:13:28 +0100 (CET), Nils Philippsen <[EMAIL PROTECTED]> said: >Not quite. The only place where a dot is special is at the beginning >of a filename (Unix has no such concept as filename segments) where >it means "this file is hidden". And even so that's just a function of h

RE: [techtalk] Filename star

1999-12-31 Thread Nils Philippsen
On Thu, 30 Dec 1999, Samantha Jo Moore wrote: > The dot "." is a very special character which is used to separate filename > segments and cannot be associated with a "*". Thus to find all files with > metacharacters in their names we need to issue two commands: > > find . -name '*\**' -prin

RE: [techtalk] Filename star

1999-12-30 Thread Samantha Jo Moore
Most of the issues with filenames with metacharacters have been answered. However, the question > How do you search for files, with meta characters as their names? still remains. You can do this with good ol' trusty find command. There's a trick however. Let's look at the find command syntax:

Re: [techtalk] Filename star

1999-12-30 Thread Subba Rao
On 0, Xavier Gutierrez Munoz <[EMAIL PROTECTED]> wrote: > On Tue, 28 Dec 1999, Subba Rao wrote: > > > > >I have noticied a meta character named file in the root's home directory and >another user's > >home directory. They were created on December 23rd. The file ownership permissions >are > >pe

Re: [techtalk] Filename star

1999-12-30 Thread Britta Koch
>I guess it is time to implement the 'wastebasket' idea on linux users $HOME. I think not - but if you want to, and know a little shell programming, you can do it in an easy way: either write a shell function or an alias: alias rem='mv $HOME/.trash' and if you want to "empty" your trash, you'

Re: [techtalk] Filename star

1999-12-30 Thread Wendt,Andrew
On Wed, 29 Dec 1999, you wrote: >No, rm * (or ls * or whatever) does _not_ match .* - you have to explicitly use .* - >at least on bash! If there is a switch/flag/whatever to make * match .*, I'd be >curious to >know, though. "shopt -s dotglob" seems to work in Bash... [EMAIL PROTE

Re: [techtalk] Filename star

1999-12-29 Thread Tamara Thompson
Objection!!! <<< Xavier Gutierrez Munoz <[EMAIL PROTECTED]> 12/29 6:40p >>> On Tue, 28 Dec 1999, Subba Rao wrote: > >I have noticied a meta character named file in the root's home directory and another >user's >home directory. They were created on December 23rd. The file ownership permissions

Re: [techtalk] Filename star

1999-12-29 Thread Xavier Gutierrez Munoz
On Tue, 28 Dec 1999, Subba Rao wrote: > >I have noticied a meta character named file in the root's home directory and another >user's >home directory. They were created on December 23rd. The file ownership permissions are >perfectly normal. The dreaded meta-character is '*'. > >To remove this I

Re: [techtalk] Filename star

1999-12-29 Thread Kirrily 'Skud' Robert
In article <[EMAIL PROTECTED]>, Malcolm Tredinnick wrote: > >One final anecdote: Kernighan and Pike in "The Practice of Programming" tell >of how Stephen Bourne (writer of the Bourne shell, amazingly enough) created >254 files for testing his shell's file handling capabilities: each file had a >on

Re: [techtalk] Filename star

1999-12-29 Thread Cynthia Dale
I haven't tried it, but I hear mc (midnight commander?) is good for this type of thing. Cindy On Wed, 29 Dec 1999, Britta Koch wrote: > On 29.12.99 at 14:06 Malcolm Tredinnick wrote: > > >A nice enough solution (you forgot to claim that you followed the advice of an > >earlier thread about sys-

Re: [techtalk] Filename star

1999-12-29 Thread Britta Koch
On 29.12.99 at 14:06 Malcolm Tredinnick wrote: >A nice enough solution (you forgot to claim that you followed the advice of an >earlier thread about sys-adminning and "did not panic" :-) ). Bad luck if you >had a few hundred files dot-files in the directory, though, since these would >be sorted b

Re: [techtalk] Filename star

1999-12-28 Thread Jeff Dike
> dired is ^X ^B. Sorry to follow up on my own blatant disinformation, but the above is wrong. dired is ^X d; ^X ^B is the buffer editor which is real similar. I stand by the rest of it. (heh) Jeff [EMAIL PROTECTED] http://www.linuxchix.org

Re: [techtalk] Filename star

1999-12-28 Thread Jeff Dike
> To delete such problem files, if you use emacs, you can use the > directory editing feature in emacs is useful (^X ^F from memory). dired is ^X ^B. ^H m will give you a little buffer which tells you what all the commands are, but the most interesting ones are the movement commands (^N ^P - u

Re: [techtalk] Filename star

1999-12-28 Thread Malcolm Tredinnick
On Tue, Dec 28, 1999 at 09:11:42PM -0500, Subba Rao wrote: > > I have noticied a meta character named file in the root's home directory and another >user's > home directory. They were created on December 23rd. The file ownership permissions >are > perfectly normal. The dreaded meta-character is