[APPENDED]Real moving of a folder's content to another folder.
Hello!
Is there a Commend to move the content of a folder -only image files no subfolders- to another destination folder? Actully, I had a look on the following post: Post tilte:Using mv to move the content of one directory into another From it, I tried that: Code:
# rsync -a SOURCE/ DEST/ Code:
mv -i SOURCE/ DEST/ What is the correct commend doing what I need? |
Depends what you mean by image. A photographic one or something like a .iso. Lets assume...
Code:
mv /home/directory/*.iso /home/new directory/* If all the contents of your disk disappear to /dev/null... "It wiznae me, a big boy did it and ran away!" (Scottish excuse) Play Bonny! :hattip: |
I mean the folder contain just *.jpg files (pictures) not image source .iso.
|
You can do it using the absolute paths
Code:
mv /path/to/folder/*.jpg /source/to/destination |
Thank you but, I need a cmd to recursively mv all the contain to the other folder with no overwriting the destination folder contains.
|
try this:
Code:
touch /path/to/destination/*.jpg |
Many thanks, thats exactly what I need.
|
Inquire
Hello,
I need help, If I want the code to do that, while moving that contents zipping them and don't keep the sources. Q: Is there a zip option do that?! Thanks in advance. |
Is that available?
|
Please read the man page for zip and search for the move option
|
tar can help you create the archives and compressed files. Look at man tar
|
All times are GMT -5. The time now is 12:08 AM. |