Skip to content

Instantly share code, notes, and snippets.

@Fallenstedt
Created July 29, 2023 22:38
Show Gist options
  • Save Fallenstedt/ad5ebabef594685bf74485603fc39ff5 to your computer and use it in GitHub Desktop.
Save Fallenstedt/ad5ebabef594685bf74485603fc39ff5 to your computer and use it in GitHub Desktop.

Revisions

  1. Fallenstedt created this gist Jul 29, 2023.
    1 change: 1 addition & 0 deletions rename
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    ls -v | cat -n | while read n f; do mv -n "$f" "$n.ext"; done