cybercitizen4@lemm.ee to Asklemmy@lemmy.ml · 1 month agoWhat's a handy terminal command you use often?message-squaremessage-square280fedilinkarrow-up1227arrow-down16
arrow-up1221arrow-down1message-squareWhat's a handy terminal command you use often?cybercitizen4@lemm.ee to Asklemmy@lemmy.ml · 1 month agomessage-square280fedilink
minus-squaretetris11@lemmy.mllinkfedilinkarrow-up4·edit-21 month agoxargs is also fun, and assuming your for loop doesn’t update anything out of the loop, is highly parallelizable The equivalent of the same command, that handles 10 tasks concurrently, using %% as a variable placeholder. seq 1 100 | xargs -I'%%' -P 10 sh -c 'mkdir Data_X0%% && mv x0%%* Data_X0%%;' But for mass renaming files, dired along with rectangle-select and multicursors within Emacs is my goto.
xargs
is also fun, and assuming your for loop doesn’t update anything out of the loop, is highly parallelizableThe equivalent of the same command, that handles 10 tasks concurrently, using
%%
as a variable placeholder.But for mass renaming files,
dired
along with rectangle-select and multicursors within Emacs is my goto.