Linked Questions
12 questions linked to/from How to move 100 files from a folder containing thousands?
63 votes
3 answers
137k views
Copy first n files in a different directory [duplicate]
Possible Duplicate: How to move 100 files from a folder containing thousands? Is it possible to copy only the first 1000 files from a directory to another? Thanks in advance
0 votes
1 answer
6k views
Split the files on a directory and move them to another newly created directory [duplicate]
I have 1000 files in a single folder and I need to split them into counts of 100 files each. After this, I need to automatically move the 100 files to a new folder which is automatically created. I ...
1 vote
2 answers
368 views
how to move set of files in one-liner [duplicate]
I wanted to move 1000 files in a directory to another dir. I can do it if I'm in the original dir but if I try this mv $(ls /home/jeremy/source|tail -1000) /home/jeremy/dest from elsewhere, the ...
0 votes
3 answers
106 views
How to set the number of moved files? [duplicate]
I'm moving png files from source/ to dest/ with this: mv /source/*.png /dest/ How can I change that command so I only move 10 png files?
0 votes
2 answers
137 views
how to move or copy specific file quantities to other directory [duplicate]
I would like to know how to move or copy specific number of files to another directory. For example: If I have 880 files in directory A and want to move or copy 150 files from A to directory B and ...
846 votes
5 answers
393k views
What does "--" (double dash / double hyphen) mean?
I have seen -- used in the compgen command. For example: compgen -W "foo bar baz" -- b What is the meaning of the -- in there?
46 votes
7 answers
105k views
How to move the first x files
I have this huge folder with thousands of unordered files. Is it feasible to move the first 5000s to a subfolder via the mv command? For now I move files with mv *some_pattern* ./subfolder1/ As ...
6 votes
1 answer
2k views
AMD microcode not updating
I have recently installed Gentoo Linux on my AMD Ryzen 7 1700X. Now I face segmentation faults during heavy compilation loads and also random restarts in an idle state. As a very first step I ...
1 vote
2 answers
1k views
How to open the first 10 files in a folder starting with a certain letter or number?
My folder has 10,000 files and I need to look through all of them. They are all called: A0001.png, A0002.png, A0003.png,...A0100.png,...A0999.png,.. A1000.png,...A09999.png,...A10000.png. I want to ...
4 votes
2 answers
753 views
How to split the subdirectories of a directory in n parts?
I have a directory with 52 subdirectories, and I'd like to split them in 11 folders with 5 subdirectories each of them. Can anyone suggest me a way to achieve this?
2 votes
1 answer
566 views
How can I execute an equivalent of `head -z` when I don't have the `-z` option available?
I need head -z for a script (off-topic, but the motivation can be found in this question), but in my CoreOS 835.13.0 I get head: invalid option -- 'z'. Full head --help output: Usage: head [OPTION].....
1 vote
0 answers
404 views
How can I copy/move the same x files from one directory to another?
I have multiple directories with a few thousand files each. Each directory contains files with the same names, but with different extensions. I would like to move x files each from these sets of ...