Skip to main content

Change extensions of all files in a directory

for f in *.jsx; do mv -- "$f" "${f%.jsx}.tsx"; done


About the author

Sean McPherson is a software engineer for Khan Academy who specializes in web and mobile app development. He lives with his wife, sons, and dog in Pittsburgh, PA.