mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-21 07:50:56 +00:00
Update cheatsheets
This commit is contained in:
@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo emerge {{[-avuDN|--ask --verbose --update --deep --newuse]}} @world`
|
||||
|
||||
- Resume a failed updated, skipping the failing package:
|
||||
- Resume a failed update, skipping the failing package:
|
||||
|
||||
`sudo emerge --resume --skipfirst`
|
||||
|
||||
|
||||
41
tldr/linux/rnm
Normal file
41
tldr/linux/rnm
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rnm
|
||||
|
||||
> Bulk Rename Utility.
|
||||
> More information: <https://github.com/neurobin/rnm>.
|
||||
|
||||
- Replace a search string with a replacement string in filenames:
|
||||
|
||||
`rnm -ss {{old}} -rs {{new}} {{path/to/directory}}`
|
||||
|
||||
- Use a fixed (literal) search and replace string instead of regex:
|
||||
|
||||
`rnm -ssf {{old}} -rs {{new}} {{path/to/files}}`
|
||||
|
||||
- Add an auto-incremented index to filenames starting from 1:
|
||||
|
||||
`rnm -i 1 -inc 1 -rs {{_}} {{path/to/files}}`
|
||||
|
||||
- Rename files using a list of new names from a text file:
|
||||
|
||||
`rnm -ns/f {{path/to/names.txt}} {{path/to/files}}`
|
||||
|
||||
- Rename only files (ignoring directories and links):
|
||||
|
||||
`rnm -fo -ss {{pattern}} -rs {{replacement}} {{path/to/files}}`
|
||||
|
||||
- Sort input files by modification time before renaming:
|
||||
|
||||
`rnm -s/mt -ss {{pattern}} -rs {{replacement}} {{path/to/files}}`
|
||||
|
||||
- Run a simulation without making actual changes:
|
||||
|
||||
`rnm -sim -ss {{pattern}} -rs {{replacement}} {{path/to/files}}`
|
||||
|
||||
- Undo the last renaming operation:
|
||||
|
||||
`rnm -u`
|
||||
Reference in New Issue
Block a user