Skadabucci

joined 1 year ago
[–] [email protected] 7 points 11 months ago (2 children)

Are these files that need renaming? You could open the terminal cd to the directory.

for filename in $(ls *.mp4); do
  if [[ "$filename" =~ some_file_match*.mp4 ]]; then
    modified_filename=<modification code here TBD>
    cp $filename $modified_filename && rm $filename -f
  fi
done