Before you attempt to move anything, do:
shopt -s dotglob
from the bash prompt, which will change bash's globbing routine to include
those pesky little dotfiles, too. Of course, this presumes you're using
the
bash shell.
--Jim--
James S. Tison
Senior Software Engineer
TPF Laboratory / Architecture
IBM Corporation
"If dogs don't go to heaven, then, when I die, I want to go where they
do."
-- Will Rogers
"McKown, John" <[EMAIL PROTECTED]>
Sent by: Linux on 390 Port <[EMAIL PROTECTED]>
05/05/2004 13:27
Please respond to
Linux on 390 Port
To
[EMAIL PROTECTED]
cc
Subject
Re: Command to move everything up a directory
Adam,
Actually:
cd /my/dir/dir
mv files ..
You're method moves things other that the "files" subdirectory up one
level,
and does not move the "private" (.*) files. Moving the subdirectory does
move everything include the "dot" files.
--
John McKown
Senior Systems Programmer
UICI Insurance Center
Applications & Solutions Team
This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and its' content is
protected by law. If you are not the intended recipient, you should
delete
this message and are hereby notified that any disclosure, copying, or
distribution of this transmission, or taking any action based on it, is
strictly prohibited.
> -----Original Message-----
> From: Adam Thornton [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 05, 2004 12:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Command to move everything up a directory
>
>
> On Wed, 2004-05-05 at 12:24, Adam Thornton wrote:
> > On Wed, 2004-05-05 at 12:00, Marcy Cortes wrote:
> > > I need a mv incantation to move everything up a
> directory, i.e. change:
> > >
> > > /my/dir/dir/files to
> > > /my/dir/files
> >
> > cd /my/dir/dir
> > mv * ..
>
> Other people's suggestions are better, as this does not move dotfiles,
> does it?
>
> Adam
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: INFO
> LINUX-390 or visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
>
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390