Skip to content

Instantly share code, notes, and snippets.

@veryyoung
Created May 28, 2022 16:04
Show Gist options
  • Select an option

  • Save veryyoung/336f3311236d7c6fadd321cac376e406 to your computer and use it in GitHub Desktop.

Select an option

Save veryyoung/336f3311236d7c6fadd321cac376e406 to your computer and use it in GitHub Desktop.
batch rename file
for i in `ls | grep .json`; do mv $i `echo "$i" | awk -F '.json' '{print $1}'`;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment