General :: Can't Copy Files From Directory With "&" Symbol In Directory Name

Mar 18, 2010

I am using my media server as my podcast collector. I am in the process of learning the ins and outs of NFS so i can mount a NFS directory and transfer my podcasts from server to player. For now i am using scp to transfer podcasts from server to desktop then to player. The problem is the path to the directory of one of the podcasts is /home/user/gpodder-downloads/The BILL&TIMMY Show Podcast.

whenever i try and run my scp command it fails because it thinks that TIMMY is a script i want to run in the background. I have tried to back-slash escape the character, i've tried single quoting and double quoting the character and i still get the same problem. as it sits now i have to move all podcasts to another directory and then transfer them to my desktop...but i would like to transfer the podcasts without un-necessary steps.

View 8 Replies


ADVERTISEMENT

Fedora :: Copy A Few Files From Windows Directory Into The Wine Directory

Aug 1, 2009

i want to copy a few files from my windows directory into the wine directory - its no big deal, just a few preference files so i dont have to set something up all over again. trouble is, i had the files copied, but i cant find the wine/ c: drive directory anywhere, anyone know where this can be found??

View 8 Replies View Related

Programming :: Copy Files After Search In Array From This Directory To Another Directory?

Jan 3, 2009

After i try to find logfiles follow date/month/year. i want copy this files to another directory with name's directory is time you find(date/month/year).

View 4 Replies View Related

General :: Copy Files From Directory Of One User To Directory Of Another User?

Apr 15, 2011

Is it possible to copy files from directory of one user to directory of another user in linux?

View 7 Replies View Related

General :: Copy Files From Directory ?

Dec 22, 2009

I have four directories and i want to copy only the files in the directory to a single directory, how can i do it with the cp command.

The directories names are dir1, dir2, dir3 and dir4 and i want only the files from these directories to a single directory called mainDir.

View 3 Replies View Related

General :: Copy Files Have 2 Year Old To Another Directory?

Apr 16, 2010

i just need to make copy files have 2 year old to another directory i know how to use cp command but i am not able to do that

View 2 Replies View Related

General :: Copy Files To A Respective Directory

Jul 27, 2011

I am trying to read mulitple files and copy its contents (files) to a respective directory. I have a folder "Oracle". Under this i have mulitple files as mentioned below.

Each of the above has a list of files in them.

Now i have created new directories with the same name as the above files in another location say

The script that i looking at has to read the files from Oracle, backup its contents to its appropriate new directory.

Example:

View 2 Replies View Related

General :: Copy Range Of Files In Directory?

Mar 29, 2010

I want to know how to copy a range of files from one directory to another.

For example say I list the contents of a directory, how would i copy files 5-15 to another directory?

View 3 Replies View Related

General :: Using Cp Properly - Copy A Directory Somewhere Else Into This Current Directory ?

May 13, 2011

I am in my current directory. I want to copy a directory somewhere else into this current directory. Lets say I want to take it from direc1/direc2 and the directory I want to take is called demo.

Code:

That is what it shows in the man pages, but when I do that, it says cp: no match

View 5 Replies View Related

General :: Find Document Files And Copy Them To Another Directory?

Nov 7, 2010

This is a bit of a basic question but I'm trying to copy all .doc files I find in a directory and copy them to another directory.I know each command:

find -name '*.doc' .

and:

cp filename location

how can I combine the two commands?

View 3 Replies View Related

General :: Copy A (big) Directory Over Another Changing Only The Files That Differ?

Feb 3, 2011

I have directory a and directory b. They are big. b is almost identical to a. "almost" means that 4-5 files differ, and I don't know which they are. I want to copy b over a, but only the files that differ. i'm in bash.(no, I can't simply delete a and replace it with b, because 1) a is version-controlled 2) a full copy (or a mv) would take too much. I want to copy only the files that differ).

View 4 Replies View Related

General :: Script To Copy Some Files With Ftp After Searching In The Directory?

Apr 20, 2011

I was trying to develop a script which needs to check the count of files on hourly basis and if it find any addition it has to sftp and send a email on the status with filenames and number of files copied via sftp. I will put it on cron to run every hour.

I'll use ls /abc|wc -l to count the no. of lines for the first time and from then whenever a new file will be inserted it'll copy that file to another location or I'll take the date of the files and whichever is having a new date that will be copied to another location.

View 7 Replies View Related

General :: Copy Directory Files To Bootable Flash Device?

Jul 26, 2011

copy a compact flash card with a form of Linux on it (Found out it was custom version based on Fedora Core 3). The flaky USB card reader seems to have hosed the flash card, it shows up with unknown volume after ejecting the card and reinserting it. My troubleshooting: I have Ubuntu on a flash drive that I used to start all this to read the flash card.

- I tried Disk Utility to reformat the card as Master Boot Record and the volume as ext3 with flag set to Bootable and copied the files using cp in command line.

- I tried ISO Master & mkisofs to make an ISO that the USB thumb drive tools can use, but it wouldn't copy all the files. Looks like symbolic links either were ignored or couldn't find the source file with -f.

- I learned that I might need a boot partition with a boot image, which I think I have in initrd-2.6.14.7img, but I don't know how to do that. Do I also need a swap partition?

My updated goal: using the files from the flash card, make a bootable compact flash card with Fedora Core 3.

View 7 Replies View Related

General :: Use File Globbing To Copy All The Files In The /labs/data Directory?

Sep 13, 2010

Use file globbing to copy all the files in the /labs/data directory that end with a .out to the lab05 directory.

Use file globbing to copy all the files in the /labs/data directory that start with a c, d, or n into the lab05 directory.

View 5 Replies View Related

General :: Command Line - Automating A Task - Copy All Subdirectories And Files From One Directory To Another

Jun 10, 2010

I need to copy all subdirectories and files from one directory to another ever 5 minutes or so, with the old data automatically being overwritten with the new data. I'd also like this to run at startup. Is there any way this can be done? If so, what program would I need to schedule the automation and what is the command line I would need.

View 2 Replies View Related

General :: Perform A Long Directory Listing Of All Files In The /bin Directory That Have Exactly Three Characters In Their Name?

Jan 18, 2010

How do you perform a long directory listing of all files in the /bin directory that have exactly three characters in their name?

View 1 Replies View Related

General :: Files Created In A Directory Owned By Directory Group?

Jan 29, 2010

Is there a way, on Linux, to cause all new files created in a directory to be owned by the directory's group instead of the creating user's group?

View 2 Replies View Related

General :: Cronjob Directory / Send An Email If Directory Contains More Than Ten Files?

Oct 13, 2010

I want to run a cronjob every 15 minutes that checks a directory for files. If the directory contains more than ten files I want it to send an email to me.

All I have is this...

*/15 * * * * ls -l | wc -l | [filename] | mail -s "This is just a test" [email address]

I would rather not write a bash script. Is there an easier way to do this? I was looking into some commands like find and grep.

View 6 Replies View Related

General :: Find Directory Older Than X And Mv Directory With Sub Files Command?

Jul 13, 2011

I'm quite new to linux but I have configured a simple ftp server and it's working great. I have a FTP-Shared folder with upload and download subfolders. Under upload's and download's I have identical category subfolders like mp3's, movies, software etc. in both. As the guy's upload, I would like to create a line crontab where I can move all the content under /FTP-Shared/upload/mp3/* older than 14 day's to FTP-Shared/downloads/mp3/ recursively (Like in cp command), but the timestamp must be searched on the first directory and not sub files example: /mp3/Club Dance/CD1/Hallo world.mp3This is how far I got:[root@clients ~]# /usr/bin/find /FTP_Shared/upload/Mp3s/ -depth -mindepth 1 -mtime +14 -type d -exec mv -f {} /FTP_Shared/download/Mp3s/ ;This command moves the directory and files, but it is not recursively

View 4 Replies View Related

Ubuntu :: When Drag The File To Install It Again It Says Something Along The Lines Of It Cannot Copy A Directory Over A Directory?

Feb 19, 2010

I downloaded a mouse theme form gnome look and installed it in the themes. But it has not appeared in the pointer themes section in custimation even though it said that it is installed correctly.When I drag the file to install it again it says something along the lines of it cannot copy a directory over a directory.Where can I find where the mouse/pointer theme is located and delete it. I have searched filesystem, google and these forums and not had any luck yet.

View 1 Replies View Related

General :: Symlink Each Of The Files In One Directory To Another Directory?

Feb 11, 2011

If I have a directory /foo with a few files in it, how do I symlink each entry in /foo into /bar/? For instance, if /foo has the files a, b and c, I want to create three symlinks:

/bar/a -> /foo/a
/bar/b -> /foo/b
/bar/c -> /foo/c

View 3 Replies View Related

Ubuntu :: Copy Only Most Recent Files From A Directory?

Mar 4, 2011

I am using Gpodder for the moment and would like to copy the 3 most recent podcast episodes of every podcast to a second directory (in fact the second directory resides on my android phone, mounted via usb)The setup is as followsGpodder downloads the episodes in

/home/PODCASTS/podcast 1/
/home/PODCASTS/podcast 2/
/home/PODCASTS/podcast 3/

[code]....

View 9 Replies View Related

Ubuntu :: Recursively Copy From Directory To Another Directory

Mar 23, 2010

I'm facing a little trouble with copying a .txt file(only) from a directory and subdirectory to another directory. -R command don't work I think if I want to do this, since I don't want to copy subdirectory.

View 6 Replies View Related

Ubuntu :: Copy / Move Random Files From One Directory To Another

May 7, 2011

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 Related

Ubuntu :: Use Rsync To Copy ONLY Home Directory And No Files?

Jun 1, 2011

How can I use rsync to copy ONLY the my home folder (and nothing inside of it, just the folder name) to another machine. I've tried things like

Code:

rsync -av /path/to/src /path/to/dest/

or

Code:

rsync -av -f"+ */" -f"- *" /path/to/src /path/to/dest/

This last option recursively (through the -a switch) copies only folders, including all subfolders. If I try

Code:

rsync -v -f"+ */" -f"- *" /path/to/src /path/to/dest/

nothing is copied (not even my home folder.

View 9 Replies View Related

Debian :: Find And Copy Same Files To Single Directory?

Feb 17, 2011

I have a number of crash.log files scattered about my system and I would like to run a command to find all the crash.log files on the system and copy them to a single directory; each with a unique filename. For example, copy crash.log from ~/directory_1 , ~/directory_2 , ~/directory_3 and so on to ~/crash_logs/crash.log1 , ~/crash_logs/crash.log2 , ~/crash_logs/crash.log3 etc.

View 1 Replies View Related

General :: Find Files In Subdirectories And Copy Them To Another Directory With The Same Subdirectories?

Nov 18, 2010

This question is very similar to this one except that I want to maintain the file's original subdirectories.

For example if I had

/temp/a/a.txt
/temp/a/a.jpg
/temp/a/b.txt
/temp/b/c.txt
/temp/d/d.txt
/temp/d/d.jpg
/temp/d/e.txt
/temp/f.txt

[Code]...

View 2 Replies View Related

Ubuntu :: Command To Copy Files In Directory Created Within 2 Hours?

Apr 22, 2010

Is there a simple command to copy files that have been created within the past 2 hours?I've been looking through the man pages for unisonrsyncfindcpand I can't find anything I'm looking for.All I need is a simple command.Code:Copy folder a to b if created < 2 hours.

View 4 Replies View Related

Ubuntu :: Copy A Sample Set Of Files/pictures To A Directory On Desktop?

Jul 6, 2011

I'm trying to copy a sample set of files/pictures to a directory on my desktop. For my sample from /home/user/pics containing 7,000+ pictures, I have a desired list of:

Code:

user@computer:/home/user/pics$ ls | tail

I use that to generate a list of a few files that I'd like to move to my desktop. I tried:

Code:

user@computer:/home/user/pics$ ls | tail | cp /home/user/Desktop

I thought that might dump the tail list of files for an argument in the cp command, but no luck. I then tried:

Code:

user@computer:/home/user/pics$ ls | tail | cp . /home/user/Desktop

"ls | tail" output, but no luck.

View 5 Replies View Related

Programming :: Copy All The Files In The Directory Based On The Modification Date?

Dec 29, 2010

Originally Posted by Kenny_StrawnPlease wrap [CODE] tags aroung any code posted here. The full source that way could still be posted.I am trying to copy all the files in the directory based on the modification date (i.e created on Dec 29). Not able to find the proper command for this. This is what I have tried.

(none) login: root
#
# cd /mnt/hd/

[code]...

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved