One way to do it: /bin/csh (to get into csh) cd /my/dir/dir/files foreach i (`ls`) mv $i ../$i echo $i end
-- db David Boyes Sine Nomine Associates > -----Original Message----- > From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of > Marcy Cortes > Sent: Wednesday, May 05, 2004 1:00 PM > To: [EMAIL PROTECTED] > Subject: Command to move everything up a directory > > > I need a mv incantation to move everything up a directory, > i.e. change: > > /my/dir/dir/files to > /my/dir/files > > Thanks in advance, > > Marcy Cortes > > ---------------------------------------------------------------------- > 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
