snippets/old_snippets/move-file-range.en.md

367 B

title date draft snippet_types
move file range 2020-01-27T14:47:22+01:00 false
files
built-ins

Recently had to move a range of files and some zsh expansions came in handy.

$ for x in {1..6}; do mv AAAA.S01E0"$x".mkv ./a-$x.mkv; done

source:

https://serverfault.com/questions/370403/copy-a-range-of-files-in-command-line-zsh-bash