Skip to content

Instantly share code, notes, and snippets.

@vasilii-b
Created October 21, 2021 15:21
Show Gist options
  • Save vasilii-b/f832b9c5ecd73cd73730f3308aa18b42 to your computer and use it in GitHub Desktop.
Save vasilii-b/f832b9c5ecd73cd73730f3308aa18b42 to your computer and use it in GitHub Desktop.
Change filename extension or replace part of filename
find ./ -name "*.css" -exec sh -c 'mv "$1" "${1%.css}.txt"' _ {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment