Tagged Questions
0
votes
4answers
55 views
concatenating multiple files with multiple headers
Im trying to concatenate multiple files with multiple headers to have one file with all the information in it for example.
File 1:
Numbers
1
2
3
Letters
A
B
C
File 2:
Numbers
4
5
6
Letters
D
E
...
1
vote
2answers
91 views
Can one copy a relpath in one command?
I find myself doing this often enough that I wonder if there's a standard Unix way to do it:
% mkdir -p /TARGETDIR/relative/path/to
% cp ./relative/path/to/somefile /TARGETDIR/relative/path/to
In ...
3
votes
3answers
291 views
Copy multiple files to one dir with parallel
I'm using the following script to copy multiple files into one folder:
{ echo $BASE1; echo $BASE2; echo $BASE3; } | parallel cp -a {} $DEST
Is there any way to use only one echo $BASE with brace ...
1
vote
2answers
1k views
Batch copying/moving files in unix?
Is there a way to batch copy/move files in unix? I thought it might be an option for cp/mv but I can't find any way to do it.
3
votes
1answer
448 views
How to replace a symbolic link with a copy of a file it links to?
Having a (single, no batch filesystem processing needed) symlink, what a command line to use to replace it with a copy of the file it links to?
4
votes
4answers
857 views
Copy text from one terminal into another
I am logged into ssh to a university account from my home computer. Then I find a file that I want to copy onto my local system. So I open a new shell terminal and am about to use scp to copy that ...
19
votes
3answers
14k views
21
votes
5answers
6k views
How can I move files and view the progress (e.g. with a progress bar)?
When moving large directories using mv, is there a way to view the progress (%)?
The cp command on gentoo had a -g switch that showed the progress.
9
votes
3answers
4k views
copy recursively except hidden directory
How do I copy recursively like cp -rf *, but excluding hidden directories (directories starting with .) and their contents?