Buy @ Amazon

Search This Blog

December 29, 2019

Bash CLI command to remove prefix from multiple file names in a directory

Before you run the below command from your target directory, you can set the prefix value in bash prompt like prefix=[FinanceDept].

Also If you want some confirmation before action, you can do it interactively using "-i" flag to the command below. It also helps to minimize accidental damages with the command execution.
--
--
Hope it serves you well!

No comments:

Post a Comment

Like it or hate it, feel free to share your feedback. Cheers!