831 questions
1
vote
5
answers
187
views
How we can find & coping .mp3 files recursively in linux into a single folder
Basically I am writing this to transfer all .mp3 files to my mobile through Bluetooth option. If I am directly coping it to SD Card, it is not working. My button phone not recognizing the MP3 files ...
0
votes
2
answers
64
views
Copy files from source directory to destination directory, following symlinks in destination directory
I'm trying to copy some files from one directory to another and resolve all symlinks in the destination directory. To better illustrate what I'm saying, my source directory looks something like this:
...
2
votes
1
answer
115
views
How to account for destination being file or directory in cp implementation in c
I am writing a pseudo-shell in c for a class and my cp command needs to account for the destination being a file or a directory. I realized after I implemented everything I currently only truly ...
0
votes
1
answer
44
views
Copy multiple files in Makefile using freebsd make
I'm trying to copy multiple files from one directory to another via a Makefile.
However this does not work...
SHELL=/bin/bash
copy:
@cp /dir1/dir2/{file1,file2} /dir3/
Output:
cp: /dir1/dir2/{...
-2
votes
1
answer
41
views
MACOS: cp command fails when using * to look up for all files with certain extension because of quotes?
The following command:
cp "/Users/my.name/Documents/GitHub/Folder/*.dylib" "/Users/my.name/Documents/GitHub/OtherFolder"
Throws the following:
No such file or directory
The ...
0
votes
1
answer
68
views
copy from text file to other text file , but not owerwiting first 2 lines [duplicate]
I would like to copy the contents of a text file has another text file but do not crush the first 2 lines of the other file, or copy and add the 2 lines to the new file
Exemple:
user1.txt:
Phill
Johne
...
1
vote
0
answers
472
views
Getting Error: "No such container" using docker cp command
I trying to copy a file from a container to my local machine.
As you can see below, my container is runnig...
❯ docker ps
CONTAINER ID
IMAGE
COMMAND
CREATED
STATUS
PORTS
NAMES
1cbed27defce
postgres
&...
1
vote
0
answers
804
views
docker cp reports error about Lchown but copies file anyway
I am running on Ubuntu 22.04 with docker version 24.0.7 running in rootless mode. As part of standing up a new container I will copy files into it using the command docker cp. Previously I worked with ...
0
votes
2
answers
74
views
How make to correctly logical implication in CP's Cplex
I'm new to CPLEX, and I'm doing a project using CP.
I have a multilist A that has 4 arguments : one Operation o, one Surgeon s, one Room r and one Time t
A[o,s,r,t] == 1 if and only if the operation ...
0
votes
0
answers
198
views
kubectl cp command is encrypted or not like sftp
Does anyone has any idea how can i check if kubectl cp commnd sends data in encrypted form or not.
Tried to take the dump using tcpdump while running "kubectl cp" command but could not find ...
-1
votes
1
answer
619
views
Is there a direct way to "send" a file from one user to another in Linux
To clarify for users who think this is a common question... I know how to use an intermediate directory with a common group to transfer a file between two users. In my situation that intermediate file ...
1
vote
0
answers
401
views
Cant copy file with cp on Android, Skipped, Cross-device link
The task is to copy to temp folder some data and then operate with it.
The command
cp /data/data/com.vivaldi.browser/app_chrome/ /data/local/tmp/zip
gives
cp: Skipped dir '/data/local/tmp/zip/': Cross-...
0
votes
1
answer
2k
views
How to copy objects across gcp buckets preserving metadata. gsutil cp drops custom metadata keys wilth null values
I need to copy data across Google Cloud Platform - Cloud Storage(GCS) buckets (source is a GCS bucket and destination is a GCS bucket)
Since I perform copy along some more operations in small batches ...
0
votes
0
answers
104
views
Copy os-release content from inside docker container
I need to capture host's os-release from inside the alpine docker container. If I directly run cp /etc/os-release /path/file command inside the container, it copies the details of alpine linux. I also ...
0
votes
1
answer
57
views
In Haskell's Turtle library, how to copy a file, but preserve the file date
I copy a file with the Turtle library. I do so like this:
...
do
TU.cp oldname newname
...
However this sets the date of the copied file to the current time - how can I keep the original ...
0
votes
1
answer
1k
views
Github Actions Artifact build wont successfully copy
I am trying to copy my artifact to /var/www/build so it is served by nginx. Unfortunately, for some unknown reason it doesn't copy.
err: cp: cannot stat '/home/runner/work/investing/investing/client/...
0
votes
2
answers
501
views
I want to use S3P to copy 100TB from approx 7 Buckets
Some of my objects in my S3 buckets are encrypted with another KMS key.
Which I don't have access to in that case I want to exclude these files.
I have tried using S3 sync and it has parameter --...
0
votes
1
answer
623
views
How to create a bool variable to indicate if another integer variable is between two specific values
In ortools cp-sat, how could we link an boolean decision variable to whether an integer variable value is between two given values.
from ortools.sat.python import cp_model
def get(x):
return ...
1
vote
1
answer
430
views
How would I calculate this excel formula in SQL? Pk/Cpk
Simple Query to show the columns
SELECT TL4_Cp_Cpk.Tread_Length_LSL AS LSL,
TL4_Cp_Cpk.Tread_Length_USL AS USL,
TL4_Cp_Cpk.Tread_Length AS Length,
FROM TL4_Cp_Cpk
Formula from excel
=MIN(USL-...
1
vote
1
answer
1k
views
cp: invalid option -- 'D'
My goal is to find all .pdf files from multiple subfolder structures and then move them to another folder.
For this I have assembled the following.
find /mnt/user/Data/01_Persönliche_Dokumente/...
2
votes
3
answers
2k
views
Copy all files with a certain extension from all subdirectories and preserving structure of subdirectories
How can I copy specific files from all directories and subdirectories to a new directory while preserving the original subdirectorie structure?
This answer:
find . -name \*.xls -exec cp {} newDir \;
...
2
votes
1
answer
3k
views
GitLab pipeline - Copy file if exists
I have a pipeline that needs to copy some files from a folder to a new one only if the files exists in the source folder.
This is my script line:
script:
- cp source_folder/file.txt dest_folder/ 2&...
0
votes
0
answers
76
views
what is difference b/w - "for(auto &i : v)" and "for(auto &&i : v)" in cpp? [duplicate]
what is difference b/w - for(auto &i : v) and for(auto &&i : v) in cpp ?
I tried to figure it out but I was getting all results simular only so I am just curious to know that both are ...
-2
votes
1
answer
437
views
Why do `rsync` and `cp` incorrectly create empty files?
I am running rsync version 3.0.8 and cp 8.32 on a Windows 10 host via git-bash. I have a git server running in a container that uses a hard drive attached to the host. Now I try to backup that server ...
0
votes
1
answer
44
views
Find files that match lines of a txt and then cp them to a new directory
I have a whitelist.txt. Inside this txt is a list of file names simliar to this:
9853412_00000_0_0.vcf
7549682_00000_0_0.vcf
3589647_00000_0_0.vcf
I want to look inside a specific SOURCE directory for ...