Linked Questions

63 votes
3 answers
137k views

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
chchrist's user avatar
  • 733
0 votes
1 answer
6k views

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 ...
juicebyah's user avatar
  • 379
1 vote
2 answers
368 views

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 ...
jeremy_rutman's user avatar
0 votes
3 answers
106 views

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?
wyc's user avatar
  • 143
0 votes
2 answers
137 views

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 ...
Sunitha Bist's user avatar
846 votes
5 answers
393k views

I have seen -- used in the compgen command. For example: compgen -W "foo bar baz" -- b What is the meaning of the -- in there?
dogbane's user avatar
  • 30.8k
46 votes
7 answers
105k views

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 ...
Fabinout's user avatar
  • 563
6 votes
1 answer
2k views

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 ...
DaBler's user avatar
  • 101
1 vote
2 answers
1k views

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 ...
Guest's user avatar
  • 151
4 votes
2 answers
753 views

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?
Rodrigo Morales Alvarado's user avatar
2 votes
1 answer
566 views

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].....
Pedro A's user avatar
  • 144
1 vote
0 answers
404 views

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 ...
GoodDeeds's user avatar
  • 111