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 open them ten at a time, look through them, close them, and open the next ten, but I'm still getting familiar with using the terminal, so I'm not sure how to do that?When I do:open A000*.pngIt opens too many.
How to open the first 10 files in a folder starting with a certain letter or number?
linux;terminal;osx
In zsh:open A000*.png([1,10])for the first 10 ones.In bash, you can always do:files=(A000*.png)open ${a[@]:0:10}Or in a loop:while ((${#files[@]})); do  open ${files[@]:0:10}  files=(${files[@]:10})doneThat would also work in zsh, though in zsh, you could do it in a little less awkward syntax:while (($#files)) {  open $files[1,10]  files[1,10]=()}Another option is to use xargs:printf '%s\0' A000*.png | xargs -0n10 openThough that affects open's stdin. zsh has a zargs function with similar features:autoload zargs # in ~/.zshrczargs -n 10 A000*.png -- openThat lets you define that open as a function that needs to do whatever you want to do with those 10 files like:open() {  image_viewer $argv  read -q '?continue? ' || return 255}