Skip to content

Instantly share code, notes, and snippets.

@AmilKey
Created June 30, 2015 11:57
Show Gist options
  • Select an option

  • Save AmilKey/18ee9dbbb7855a096f26 to your computer and use it in GitHub Desktop.

Select an option

Save AmilKey/18ee9dbbb7855a096f26 to your computer and use it in GitHub Desktop.
rename group files in linux
for d in */; do
for f in $d*/; do
# echo $f
if [[ $f == *"4ktv_"* ]]
then
#COPY
# cp -r $f $d"xlarge/"
# echo $d"xlarge/"
#DELETE
rm -rf $f
echo $f
fi
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment