[mc] How to select a range of files

Tim Stoodt timstoodt at gmail.com
Tue Sep 19 12:12:27 UTC 2023


Hi,
     I too sometimes have to move large numbers of files.  What I 
usually do is create lists of the filenames I want, using grep awk, 
whatever.
Once I have the lists the way I want them, I change the sorting in the 
panel I'm looking at to unsorted, then I Ctrl-x ! to get to the external 
panelize
dialog, then in the command box I just type cat my_filelist01. I then 
see all the files I want, I select them all and hit F5 to move them to 
the opposite
panel.


On 9/18/23 23:01, mi via mc wrote:
>> I understand you - I'd like that, too. But +, *.*, RETURN isn't too bad to
>> get all files selected.
>> Guy
> Well i needed to select and move out several ranges out of 12.000+ files with (shell filename expansion) selectors like [A-L]* or [100..900]*  and there were several minor lettered ranges and what's with 100 vs 1001 and so on and on ... so it was also also a question of how that gets sorted.
>
> I would have preferred to select the file ranges one after the other with mc because with so many files, very long listings get visually confusing and you an easily overlook things.
>
> Bu when i needed to check what exactly i was selecting first in shell, i just did the movings in shell anyway, at the end. But it's good to know i can do this with mc too, it will come in handy i'm sure.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.midnight-commander.org/pipermail/mc/attachments/20230919/9b6d3e65/attachment.html>


More information about the mc mailing list