Sponsored Content
Top Forums UNIX for Dummies Questions & Answers coping all files from a directory Post 302081166 by dsbeerf on Sunday 23rd of July 2006 04:35:12 AM
Old 07-23-2006
Assuming that you have the permissions set so you can write to "/home/tom/tmp":

$ cd /home/pavi
$ tar cf - . | (cd /home/tom/tmp;tar xfBp - )
$
===
If you have LONG filenames (over 100 characters), use GNU tar.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

For loop - coping with an asterisk item

How do you get a for loop to cope with one of the items being an asterisk? for myResult in `echo "*"` do echo "$myResult" done The asterisk is returning a file listing in the PWD. The same result can be got from: for myResult in "*" do echo "$myResult" done (1 Reply)
Discussion started by: PaulUrwin
1 Replies

2. Shell Programming and Scripting

Coping files from server to local

This is my first post, so first I'd like to say hello to everyone. Here's the issue I'm having...I run a macro against multiple log files every morning. The procedure is sort of time consuming. I have to log into the box where there are stored, then ftp/download them to my local drive using... (3 Replies)
Discussion started by: jhofilena
3 Replies

3. Shell Programming and Scripting

cp not coping properly

Hi, I'm trying to copy the directories from one location(/tmp/source/) to other(/tmp/dest/). for this I have written a PERL script. snippet of code $sourcePath = "/tmp/source"; $destPath = "/tmp/dest"; opendir(DIR, $sourcePath ); while($dir = readdir(DIR)) { if($dir ne "." && $dir ne... (1 Reply)
Discussion started by: prashants
1 Replies

4. UNIX for Dummies Questions & Answers

coping directories?

Is this possible? If so could i have the command for it thanks!! (2 Replies)
Discussion started by: JamieMurry
2 Replies

5. Shell Programming and Scripting

coping files, need to exclude certain files

I have two directories that contain data files. I would like to create a script that would copy all data files (*.dbf) from these directories to another location, except for 4 specific files. How do I exclude those files from my cp command? (4 Replies)
Discussion started by: soliberus
4 Replies

6. UNIX for Dummies Questions & Answers

Coping Files for a specific date range

Hi, we have file name appended by date in yymmdd format .. ex: abc090101.dat I need to copy all the files between abc090101 to abc090331.. could you plz help me.. Thanks. (1 Reply)
Discussion started by: kolariya4u
1 Replies

7. UNIX for Dummies Questions & Answers

coping files from unix to windows

hey all, i have a unix computer and a windows os computer connected in the same local network i want to copy the etc folder to the windows computer so if my unix computer's hard disk rashes i can restore it from my windows computer. my first problem is i'm kinda lame with unix...i know... (3 Replies)
Discussion started by: shwinky
3 Replies

8. Shell Programming and Scripting

Coping files that containing 2010

I want to use the find command to copy files that contain 2012 from one directory to another. I tried find /Volumes/movies1 -name "*.2012.*" -exec cp -nRv "{}" /Volumes/pdrive/ \; (2 Replies)
Discussion started by: codecaine
2 Replies

9. Shell Programming and Scripting

Error files count while coping files from source to destination locaton as well count success full

hi All, Any one answer my requirement. I have source location src_dir="/home/oracle/arun/IRMS-CM" My Target location dest_dir="/home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct" my source text files check with below example.text file content $fn "\t" $dc "\t" $pc "\t" ... (3 Replies)
Discussion started by: sravanreddy
3 Replies

10. Shell Programming and Scripting

Directory containing files,Print names of the files in the directory that are exactly same content.

Given a directory containing say a few thousand files, please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents. func(a_directory_name) output -> {“matches”: , ... ]} e.g. func(“/home/my/files”) where the directory... (7 Replies)
Discussion started by: anuragpgtgerman
7 Replies
cachefslog(1M)						  System Administration Commands					    cachefslog(1M)

NAME
cachefslog - Cache File System logging SYNOPSIS
cachefslog [-f logfile | -h] cachefs_mount_point DESCRIPTION
The cachefslog command displays where CacheFS statistics are being logged. Optionally, it sets where CacheFS statistics are being logged, or it halts logging for a cache specified by cachefs_mount_point. The cachefs_mount_point argument is a mount point of a cache file system. All file systems cached under the same cache as cachefs_mount_point will be logged. OPTIONS
The following options are supported. You must be super-user to use the -f and -h options. -f logfile Specify the log file to be used. -h Halt logging. OPERANDS
cachefs_mount_point A mount point of a cache file system. USAGE
See largefile(5) for the description of the behavior of cachefslog when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes). EXAMPLES
Example 1: Checking the Logging of a directory. The example below checks if the directory /home/sam is being logged: example% cachefslog /home/sam not logged: /home/sam Example 2: Changing the logfile. The example below changes the logfile of /home/sam to /var/tmp/samlog: example# cachefslog -f /var/tmp/samlog /home/sam /var/tmp/samlog: /home/sam Example 3: Verifying the change of a logfile. The example below verifies the change of the previous example: example% cachefslog /home/sam /var/tmp/samlog: /home/sam Example 4: Halting the logging of a directory. The example below halts logging for the /home/sam directory: example# cachefslog -h /home/sam not logged: /home/sam EXIT STATUS
The following exit values are returned: 0 success non-zero an error has occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
cachefsstat(1M), cachefswssize(1M), cfsadmin(1M), attributes(5), largefile(5) DIAGNOSTICS
Invalid path It is illegal to specify a path within a cache file system. SunOS 5.10 7 Feb 1997 cachefslog(1M)
All times are GMT -4. The time now is 01:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy