On Monday 13 August 2001 18:45, civileme wrote: > On Monday 13 August 2001 12:26, root wrote: > > On Monday 13 August 2001 09:42, George Petri wrote: > > > Hi! > > > > > > Does anyone know why * misses hidden files such as .kderc? > > > What is the reasoning for that? > > > > > > I mean to select ALL files, now I have to specify (in bash, of course): > > > > > > * *.[a-zA-Z] > > > > > > to my programs e.g. cp * *.[a-zA-Z] /somefolder. > > > > > > It is also a pain to type! Is there a better way to select ALL files? > > > > > > Thanks, > > > George > > > > try "echo .[^.]* *" and you will see that gives you all the files except > > . and .. > > Hmmm, I always use > > cp -a to preserve links and such. > > Civileme That is good if you want to copy recursively all files but I think the question was how to reference all files in a directory. The "cp" was just an example he gave. Here is another example: for i in .[^.]* ..[^.]* ...* * ; do mv $i $i.old done This would rename everything (including directory names) to a name with the suffic .old. The only 2 files that would not be renamed would be . and .. This would not act recursively. If one wanted to do that, find would be better suited. Thanks. -- Gerard Perreault [EMAIL PROTECTED]
Want to buy your Pack or Services from MandrakeSoft? Go to http://wwww.mandrakestore.com
