tldr/pages/common/qmv.md

25 lines
659 B
Markdown
Raw Normal View History

2019-11-05 07:33:21 +00:00
# qmv
2019-12-31 18:27:57 +00:00
> Move files and directories using the default text editor to define the filenames.
2019-11-05 07:33:21 +00:00
> More information: <https://www.nongnu.org/renameutils/>.
2019-12-31 18:27:57 +00:00
- Move a single file (open an editor with the source filename on the left and the target filename on the right):
2019-11-05 07:33:21 +00:00
`qmv {{source_file}}`
- Move multiple JPG files:
`qmv {{*.jpg}}`
2019-12-31 18:27:57 +00:00
- Move multiple directories:
2019-11-05 07:33:21 +00:00
2019-12-31 18:27:57 +00:00
`qmv -d {{path/to/directory1}} {{path/to/directory2}} {{path/to/directory3}}`
2019-11-05 07:33:21 +00:00
2019-12-31 18:27:57 +00:00
- Move all files and directories inside a directory:
2019-11-05 07:33:21 +00:00
2019-12-31 18:27:57 +00:00
`qmv --recursive {{path/to/directory}}`
2019-11-05 07:33:21 +00:00
2019-12-31 18:27:57 +00:00
- Move files, but swap the positions of the source and the target filenames in the editor:
2019-11-05 07:33:21 +00:00
`qmv --option swap {{*.jpg}}`