Sponsored Content
Top Forums Shell Programming and Scripting Copy files gives "cp: omitting directory" error Post 302335458 by guruprasadpr on Sunday 19th of July 2009 12:19:54 PM
Old 07-19-2009
cp can do copy from multiple sources, but not to multiple destinations. In this case, it takes the first 2 arguments as sources, and the last done as destination. Since the second argument is a directory, cp needs "-R' option to copy.
This User Gave Thanks to guruprasadpr For This Post:
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Restoring back files from "lost+found" directory

Hi Friends, How can I Restore the Files present under "lost+found" Directory of a FileSystem (in Solaris & Tru64 OS) to their original Locations. Now-a-days I am loosing lots of files in 2 of my Machines, One running Solaris8 and other Tru64(Digital) Unix. Thanx in... (1 Reply)
Discussion started by: dhasarath
1 Replies

2. Shell Programming and Scripting

Error to "find" a matching array element in a directory

Hi, I have defined an array which holds a couple of elements which are nothing but files names. I want to find the files in a directory for the matching file name(array elements) with less than 1 day old. When I am trying to execute the code (as below), it gives an error. Your help in this... (1 Reply)
Discussion started by: mkbaral
1 Replies

3. UNIX for Advanced & Expert Users

Why is wget copying my directory tree with some files with "@"?

I'm using wget 1.11.4 on Cygwin 1.5.25. I'm trying to recursively download a directory tree, which is the root of a javadoc tree. This is approximately the command line I tried: wget -x -p -r http://<host>/.../apidoc When it finished, it seemed like it downloaded... (0 Replies)
Discussion started by: dkarr
0 Replies

4. Shell Programming and Scripting

Delete files older than "x" if directory size is greater than "y"

I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y" #!/bin/bash du -hs $1 while read SIZE ENTRY do if ; then find $1 -mtime +$2 -exec rm -f {} \; echo "Files older than $2 days deleted" else echo "free Space available"... (4 Replies)
Discussion started by: JamesCarter
4 Replies

5. Shell Programming and Scripting

"Join" or "Merge" more than 2 files into single output based on common key (column)

Hi All, I have working (Perl) code to combine 2 input files into a single output file using the join function that works to a point, but has the following limitations: 1. I am restrained to 2 input files only. 2. Only the "matched" fields are written out to the "matched" output file and... (1 Reply)
Discussion started by: Katabatic
1 Replies

6. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

7. UNIX for Advanced & Expert Users

getting error "ssh-copy-id: not found"

Hello, i am trying to make an ssh connection from one server to another and invoke a script on another server. while doing this i want to do a passwordless ssh connection for the same, for which i have used the following command ssh-keygen -t rsa ssh-copy-id -i... (3 Replies)
Discussion started by: arwant
3 Replies

8. Shell Programming and Scripting

Delete all log files older than 10 day and whose first string of the first line is "MSH" or "<?xml"

Dear Ladies & Gents, I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out: for filename in $(find /var/log/test... (2 Replies)
Discussion started by: Hiroshi
2 Replies

9. OS X (Apple)

Copy files between partitions with "without auto-mount" option enabled - possible?

Hello, fellow Unixers and Macers, I'll run several OS X versions each on its own dedicated partition. Partitions won't be seeing each other (by editing fstab). Question: will I be able to copy files between those partitions? Partition #1: Mavericks. Partition #2: HighSierra (2 Replies)
Discussion started by: scrutinizerix
2 Replies

10. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
MPSMatrixCopy(3)					 MetalPerformanceShaders.framework					  MPSMatrixCopy(3)

NAME
MPSMatrixCopy SYNOPSIS
#import <MPSMatrixCombination.h> Inherits MPSKernel. Instance Methods (nonnull instancetype) - initWithDevice: (nonnull instancetype) - initWithDevice:copyRows:copyColumns:sourcesAreTransposed:destinationsAreTransposed: (void) - encodeToCommandBuffer:copyDescriptor: (void) - encodeToCommandBuffer:copyDescriptor:rowPermuteIndices:rowPermuteOffset:columnPermuteIndices:columnPermuteOffset: (nullable instancetype) - initWithCoder:device: Properties NSUInteger copyRows NSUInteger copyColumns BOOL sourcesAreTransposed BOOL destinationsAreTransposed Additional Inherited Members Method Documentation - (void) encodeToCommandBuffer: (nonnull id< MTLCommandBuffer >) commandBuffer(MPSMatrixCopyDescriptor *__nonnull) copyDescriptor Encode the copy operations to the command buffer Parameters: commandBuffer A valid MTLCommandBuffer to receive the encoded kernel. copyDescriptor The descriptor that defines the copy operator - (void) encodeToCommandBuffer: (nonnull id< MTLCommandBuffer >) commandBuffer(MPSMatrixCopyDescriptor *__nonnull) copyDescriptor(MPSVector *__nullable) rowPermuteIndices(NSUInteger) rowPermuteOffset(MPSVector *__nullable) columnPermuteIndices(NSUInteger) columnPermuteOffset Encode the copy operations to the command buffer. This of the encode version support permuting the outputs with custom vectors of indices. The permutations are defined on the destination indices and are the same for each copy operation. Parameters: commandBuffer A valid MTLCommandBuffer to receive the encoded kernel. copyDescriptor The descriptor that defines the copy operator rowPermuteIndices If not nil then the output row index is 'rowPermuteIndices[i] + rowOffset' instead of 'i + rowOffset', where 'i' is the local row index of the copy operation. Note: if destinationsAreTransposed is set to YES then the destination transpose is performed before permutations. rowPermuteOffset Offset in numbers to apply to the 'rowPermuteIndices' vector. columnPermuteIndices If not nil then the output column index is 'columnPermuteIndices[i] + columnOffset' instead of 'i + columnOffset', where 'i' is the local column index of the copy operation. Note: if destinationsAreTransposed is set to YES then the destination transpose is performed before permutations. columnPermuteOffset Offset in numbers to apply to the 'columnPermuteIndices' vector. - (nullable instancetype) initWithCoder: (NSCoder *__nonnull) aDecoder(nonnull id< MTLDevice >) device NSSecureCoding compatability See MPSKernel::initWithCoder. Parameters: aDecoder The NSCoder subclass with your serialized MPSMatrixLookUpAndCopy device The MTLDevice on which to make the MPSMatrixLookUpAndCopy Returns: A new MPSMatrixLookUpAndCopy object, or nil if failure. Reimplemented from MPSKernel. - (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device Standard init with default properties per filter type Parameters: device The device that the filter will be used on. May not be NULL. Returns: a pointer to the newly initialized object. This will fail, returning nil if the device is not supported. Devices must be MTLFeatureSet_iOS_GPUFamily2_v1 or later. Reimplemented from MPSKernel. - (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device(NSUInteger) copyRows(NSUInteger) copyColumns(BOOL) sourcesAreTransposed(BOOL) destinationsAreTransposed Initialize a copy operator Parameters: copyRows The number of rows to copy for each copy operation copyColumns The number of matrix columns to copy in each copy operation sourcesAreTransposed If YES, the sources are in row major storage order destinationsAreTransposed If YES, the destinations are in row major storage order Property Documentation - (NSUInteger) copyColumns [read], [nonatomic], [assign] The number of columns to copy for each copy operation - (NSUInteger) copyRows [read], [nonatomic], [assign] The number of rows to copy for each copy operation - (BOOL) destinationsAreTransposed [read], [nonatomic], [assign] If YES, the destinations are in row major storage order - (BOOL) sourcesAreTransposed [read], [nonatomic], [assign] If YES, the sources are in row major storage order Author Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code. Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSMatrixCopy(3)
All times are GMT -4. The time now is 11:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy