Remove prefix from multiple files in Linux console

Bash:


The for loop iterates over all files with the prefix. The do removes from all those files iterated over the prefix.

Here is an example to remove “bla_” form the following files:

Command

Result in file system:

 

2 People think it's helpful 😀

Leave a Reply

Your email address will not be published. Required fields are marked *