Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 639 Bytes

bulk-change-file-endings-in-a-directory.md

File metadata and controls

33 lines (29 loc) · 639 Bytes
aliases category classification date date_modified draft id image links local_archive_links pinned print series tags title type
bulk-change-file-endings-in-a-directory
linux
public
2020-03-02 07:10:26 -0800
2020-03-02 07:10:26 -0800
false
20200302151026
false
false
rename
file
Bulk change file endings in a directory
tech-note

Warning

The renaming has no safeguards by default or without any one of the options --no-overwrite, --interactive or --no-act.

# Rename all files ending with asc to txt:
rename asc txt *.asc

# Remove match from filenames:
rename 's/-MC02FW6SFMD6M//g' *.md