![]() |
|
![]() | ||
|
Subject:
How to move multiple files at once in Solaris
Category: Computers > Programming Asked by: travis_apple-ga List Price: $2.00 |
Posted:
25 Mar 2003 09:46 PST
Expires: 25 Mar 2003 10:24 PST Question ID: 180755 |
Under Solaris UNIX I have a bunch of files in a directory with a common prefix that I wish to move into a subdirectory. I don't want to have to enter "mv file_one subdir/file_one" for each of the files as this would be time consuming. What I'd like to do is something on the command line that would move all the files I need to move into the subdirectory in one line. All the files have a similar prefix, so I was hoping that would allow me to somehow do this easily without moving files in the same directory that don't have this prefix. Thanks for your help. |
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
Subject:
Re: How to move multiple files at once in Solaris
From: denco-ga on 25 Mar 2003 09:57 PST |
Using your format, the following should work: mv file*.* subdir If you need to write over some existing files, do a force: mv -f file*.* subdir |
Subject:
Re: How to move multiple files at once in Solaris
From: eadfrith-ga on 25 Mar 2003 10:00 PST |
I think this should work: mv file_* subdir/ where file_ is the prefix. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |