Skip to content

Instantly share code, notes, and snippets.

@urosgruber
Last active December 1, 2016 21:38
Show Gist options
  • Select an option

  • Save urosgruber/5400fdcc97e74fffff5bd8e79edb9b6a to your computer and use it in GitHub Desktop.

Select an option

Save urosgruber/5400fdcc97e74fffff5bd8e79edb9b6a to your computer and use it in GitHub Desktop.

Revisions

  1. urosgruber renamed this gist Dec 1, 2016. 1 changed file with 0 additions and 0 deletions.
  2. urosgruber created this gist Dec 1, 2016.
    7 changes: 7 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    ## this will remove -fs8 from files like foobar1-fs8.png

    for filename in *.png; do
    [ -f "$filename" ] || continue
    mv $filename ${filename//\-fs8/}

    done