Skip to content

Instantly share code, notes, and snippets.

@altmas5
Created August 13, 2012 02:22
Show Gist options
  • Save altmas5/3336484 to your computer and use it in GitHub Desktop.
Save altmas5/3336484 to your computer and use it in GitHub Desktop.
remove chars massively in files of working directory
#!/bin/bash
# usage> ejecutarlo en el mismo directorio donde se encuentran las imagenes
# en el cut se indica a partir de cual caracter va a dejar el nombre
# falta codigo de autodestruccion - one liners rules!
for i in *.jpg; do mv "$i" "`echo $i|cut -c2-`"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment