Skip to main content

All Questions

Tagged with
1 vote
2 answers
3k views

How do I add the current date before the file extension for multiple files in a directory?

How do I add the current date before the file extension for multiple files in a directory? Original files: Expenses.log Allowances.log Output: Expenses_20170624.log Allowances_20170624.log This ...
user237577's user avatar
0 votes
0 answers
204 views

How to rename by a sequence in seq/nl/...?

Assume you have a list of files with random base names, some of of them have a order such as the following input example. I really would like to do this by nl/seq/..., not by some loop approaches as ...
Léo Léopold Hertz 준영's user avatar
1 vote
2 answers
3k views

rename a batch of files after reading from a source file

I have a directory full of over a thousand files and the names are bit long (and no pattern found in the naming style). I would like to simplify the filenames. E.g.: ...
Tofayel's user avatar
  • 71