Skip to main content
added 4 characters in body
Source Link

I thought it will be nice if here will be provided the option to rename the file but to changing only the part of it's name. For example the file's extension.

What the point to change the file name if you only able to add something to it's name?

find . -name "*.txt" -exec sh -c 'x={}; mv "$x" $(echo $x | sed 's/\.txt/\.bat/g')' \; 

I thought it will be nice if here will be provided the option to rename the file but to changing only the part of it's name. For example the file's extension.

What the point to change the file name if you only able to add something to it's name?

find . -name "*.txt" -exec sh -c 'x={}; mv "$x" $(echo $x | sed 's/txt/bat/g')' \; 

I thought it will be nice if here will be provided the option to rename the file but to changing only the part of it's name. For example the file's extension.

What the point to change the file name if you only able to add something to it's name?

find . -name "*.txt" -exec sh -c 'x={}; mv "$x" $(echo $x | sed 's/\.txt/\.bat/g')' \; 
Source Link

I thought it will be nice if here will be provided the option to rename the file but to changing only the part of it's name. For example the file's extension.

What the point to change the file name if you only able to add something to it's name?

find . -name "*.txt" -exec sh -c 'x={}; mv "$x" $(echo $x | sed 's/txt/bat/g')' \;