mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-28 20:24:55 +02:00
qmv, qcp: add page (#3458)
This commit is contained in:
parent
dfed39c22c
commit
64494a2f6a
2 changed files with 40 additions and 0 deletions
16
pages/common/qcp.md
Normal file
16
pages/common/qcp.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# qcp
|
||||||
|
|
||||||
|
> Copy files with your favorite text editor.
|
||||||
|
> More information: <https://www.nongnu.org/renameutils/>.
|
||||||
|
|
||||||
|
- Copy a single file (invoke an editor with source on the left, target on the right):
|
||||||
|
|
||||||
|
`qcp {{source_file}}`
|
||||||
|
|
||||||
|
- Copy multiple JPG files:
|
||||||
|
|
||||||
|
`qcp {{*.jpg}}`
|
||||||
|
|
||||||
|
- Copy files, but swap the positions of the source and the target in the editor:
|
||||||
|
|
||||||
|
`qcp --option swap {{*.jpg}}`
|
24
pages/common/qmv.md
Normal file
24
pages/common/qmv.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# qmv
|
||||||
|
|
||||||
|
> Move files and directories with your favorite text editor.
|
||||||
|
> More information: <https://www.nongnu.org/renameutils/>.
|
||||||
|
|
||||||
|
- Move a single file (invoke an editor with source on the left, target on the right):
|
||||||
|
|
||||||
|
`qmv {{source_file}}`
|
||||||
|
|
||||||
|
- Move multiple JPG files:
|
||||||
|
|
||||||
|
`qmv {{*.jpg}}`
|
||||||
|
|
||||||
|
- Move 3 directories:
|
||||||
|
|
||||||
|
`qmv -d {{path/to/dir_1}} {{path/to/dir_2}} {{path/to/dir_3}}`
|
||||||
|
|
||||||
|
- Move files/directories inside a directory:
|
||||||
|
|
||||||
|
`qmv -R {{path/to/directory}}`
|
||||||
|
|
||||||
|
- Move files, but swap the positions of the source and the target in the editor:
|
||||||
|
|
||||||
|
`qmv --option swap {{*.jpg}}`
|
Loading…
Add table
Reference in a new issue