Ubuntu :: How To Move Multiple Files
Feb 20, 2010how do i move multiple files at once using the command line?
View 4 Replieshow do i move multiple files at once using the command line?
View 4 RepliesHow can you create a script to move or copy files from a main directory into multiple directories below the main directory.
View 7 Replies View RelatedIs it possible to move multiple files and folders at once in terminal?
View 5 Replies View RelatedI liked the idea of the "cosmos" screensaver/desktop, but wanted to add my own pictures to the application. I navigated to /usr/share/backgrounds/cosmos and tried to drag and drop. I quickly found that I did not have permission to do this.
I googled my problem and found some command line tutorials telling me to sudo cp. My problem is that I have about 30 pics that I want to move in there, and I don't think I can just move the directory, they have to be in that folder as the pictures themselves.
I don't really feel like typing the cp line multiple times with multiple randomly named image files.
Is there a way to have the command line cp all of my files from one directory to another?
I'd like to move a selection of files from all the sub-directories within an overall directory to a single destination. I don't want any of the directory structure, just the files themselves. This is what I tried so far:
mv /dir1/*/igs*.sp3.Z /dir2
There are other .sp3.Z files in the * directories within /dir1 but I just need the ones that start with igs..
What I need to do is gather a bunch of log files from various directories and move them into one spot. Below shows the directory structure.Quote:
dir1
-a.log
-b.log
[code]....
have a large amount of 7z files in multiple folders which I need to extract.The directory structure is like this:
/main-folder/
multiple subfolders/
1 or more 7z files per subfolder
I would like to get the output of this action in one separate folder, all together in 1 folder.How can I do this?
I often use the rpl command to make changes to multiple html files at once. For example:
rpl -R '<br />' '<br /><br />' mydirectory However, I haven't been able to figure out how to change multiple lines. For example, let's say I want to change all occurrences of :
<br />
<br />
to:
<br />
I've tried
rpl -R '<br />
<br />' '<br />' mydirectory
but that didn't work. how to do this with rpl or some other way?
I am to rename all the files within a directory (which contains multiple subdirectories) recursively without invalid characters.
I tried the coding posted above.
find . -type f -printf '%p
' | while read file; do
oldfile=$(basename "$file")
newfile=$(echo "$oldfile" | sed 's/[^A-Za-z0-9_.]/_/g')
if [ ! "$newfile" == "$oldfile" ]; then
echo mv "$file" "${file%$oldfile}$newfile"
code....
but I get an error on both of them stating "find: bad option -printf find: [-H | -L] path-list predicate-list"
1. Every Sunday2. Find all files older than 1 day3. Gzip these file4. Tar up the gzipped files into one tar file.5. Name the tarball with a date stamp indicating what day it was created, so we know that week's files are in the file
View 3 Replies View RelatedBefore migrating to Fedora/linux, during my window days, one of my programme of choice was MS word. regardless of all it's bugs, it did all i needed it to do (eventually). Now in Fedora I have Open Office. As far as word processing it's fine. But when it comes to inserting Images I hit a brick wall.
when it cam to making bingo cards, I could choose multiple images and resize them with one click, move them all together and crop them on the fly. Open Office doesn't do that. My question is: What other option are there in the fedora world that could help me.
Being relatively new both to Linux and this forum, i am sorry if i make a post that already is, evn though i couldn`t find it.My problem is i can`t move downloaded files over to root filesystem, i have downloaded and unpacked them to files. to change it`s looks and downloaded a skin, i open root, go to usr---> amsn ---> share --> skins, now i am to copy the file of the skin over to the root directory, butI also tried alt+f2, writing sudo conqueror, as an advice i got, but there was noe difference.
View 14 Replies View Relatedwhat I got - from a crontab run a script (understand that part), this script needs to count the amount of files in /outgoing/, then take 30 less that number, and move that many files from /readycalls/. I need to keep the asterisk outgoing que full of .call files with out having to many in there at any given time.
View 3 Replies View RelatedLast fall I got a new Linux desktop computer from System76. Before that, I had a 1997-era beige G3 Mac. (This Mac is pre-USB plugs.)
I still have files on that old Mac that I need to move to the new machine. Some are text files and various other kinds of files, but mostly, they're image files, and there's a lot of them.
The Mac has a SCSI port and an Ethernet port. No Firewire, no USB.
My question: What's the best way to move the files from the old to the new machine?
(I think it would be a hassle to try to e-mail them, as I have quite a lot of image files on the Mac.)
Also, if some of the files (like text-files?) that are in Mac format can't be read once on a Linux OS, how would I make the necessary conversions?
copy a list of fileswhich has some unique string e.g
filename_1dec_2010.tar
filename_2dec_2010.tar
filename_3dec_2010.tar
filename_4dec_2010.tar
and i have another secondary hardisk i guess i need to grep with "_2010" and move
I downloades some files with jdownloader, i choose a a folder on my windows partition, but the files where saved on /root/Desktop/V . i'm trying to cut them into other folder, but it fails. Now my free space on ubuntu is 0!
View 1 Replies View Relatedim using ubuntu 10.04 sometimes i find more useful to use the terminal to copy or move folders or files to other directories (more important when they need admin permission)
today i tried to copy ALL files from a directory to another. and i realized that i dont know. i know that that "~ mv /ThisThing/ /ThisFolder/" "~ cp /ThisThing/ /ThisFolder/" but howould i be able to copy EVERYTHING from a folder into another. tis is diferent from copying the folder itself (which i also would like to know)i bet is a simple thing that i havent figured out!
I'm looking for ideas on how to transfer a group of xml files from one server to another server, either in a regular interval or ?I have a listing program, it creates a directory or classified ad type listing. When one of these is created, or an existing one is edited an XML file is created. I need to take these files and get them to another server. I've read about SOAP, FOPEN and of course FTP.
View 1 Replies View RelatedIs there a way to move files to a usb stick?
View 6 Replies View RelatedI have one hard drive that is filling up and I went and got another hard drive and installed it into the machine. How do I move files from the full hard drive to the almost empty hard drive. I only have about 400mb left on the full drive. Or should I move the Ubuntu 8.04LTS OS to the new drive?
View 2 Replies View RelatedIf i download files from the internet to the ubuntu home download folder will that kill off windows viruses? Ive also have avast on demand scanner-but are anti-viruses effective against windows viruses these days?
View 6 Replies View RelatedI'm doing a little work on my media center and the scrappers seem to do a much better job when each movie is in a directory with the name of the movie. However that's not how i have things set up.I have a few hundred avi files i need moved to directory named the same as the avi file.
View 3 Replies View RelatedI have to copy and move files over two systems all the time. So when I am on system 1, I simply use the command
Code:
$scp * system2:/some_directory
There are many files in PWD of system1 with different extensions. Of all the files in the PWD on system1, I don't need a file called *residual.dat as it it particularly big and wastes a lot of time copying.How can I make a shortcut so that every time I do scp, it copies everything but the *residual.dat file?
I've got a folder called Foo. In foo, there are 20 folders called bar1, bar2, bar3,...,bar20. In each of those barXX folders there are 2 files. How can i move those 2 files up one level into Foo with one command?
View 9 Replies View RelatedI dual boot a computer from separate hard drives in Windows XP and Ubuntu 10.04. Here is the deal: On my windows drive I have a folder that is filled with folders inside folders packed full of files in all the folders. There is a 100% possibility that I have multiple copies of any file in multiple locations. Is there any nice command or program to move all the files in all the folders to one central folder and in any way get rid of the multiple copies? Also, how do I compare to files that may or may not have the same name, but otherwise be identical to see if they are identical?
View 9 Replies View RelatedI want to move a simple .rules file from a downloaded package which I have extracted to my homefolder, to the rules.d folder. So I open both Nautilus windows and drag it over, and I get the great "permission denied" error
View 1 Replies View RelatedIn /media/....Directory not empty, maybe "/temp/..." is not an ubuntu image
I'm having this problem trying to load a gparted live ISO onto a usb drive. I want to resize my current extended partition so would rather dl just the gparted ISO than the Ubuntu one as it's taking ages (really slow).
I've tried downloading the gparted ISO a couple of times as I thought the dl might have been corrupted but I can't create a startup disk from the ISO.
(can I use an Ubuntu 9.0.4 live cd for gparted on my 10.04 build? )
We have two folders: source folder and destination folder. In source folder we have many sub folders and many files of different type!Script that would copy or move defined number of files from source to destination folder. Files must be selected randomly and sub folder in source folders must be selected randomly and we don't copy or move defined number of files just form one sub folder in source folder. In destination folder sub directory structure of source folder should not be preserved. Solution should be robust and as simple as possible.
View 9 Replies View RelatedI need to move files to a backup drive if they are over 30 days old. All I could find, when looking for scripts, were ways to sort files by date and the solutions were all over the place and nothing seemed simple or good.
I've thought of building my own running "ls -al > filelist.txt" type of approach and then processing the file, but not sure that is best way. An array would be much easier and eliminate the file, but never done an array in bash.
Just installed Lubuntu on my lappy having had Ubuntu 10.04 in the past and liked it. I dont seem to be able to get permission to move files though?I open LXTerminal and have tried the commands:Sudo nautilusgksudo nautilus
gksu nautilusBut still I cant drag drivers into the driver folder? (/usr/lib/xorg/modules/drivers)