Skip to content

Instantly share code, notes, and snippets.

@seungjin
Last active April 29, 2024 04:05
Show Gist options
  • Save seungjin/72edad8db24a2188b28d4cf2d4552b4d to your computer and use it in GitHub Desktop.
Save seungjin/72edad8db24a2188b28d4cf2d4552b4d to your computer and use it in GitHub Desktop.
remove duplicated eml in thunderbird maildir
for file in $(ls | egrep '^.+-[0-9].eml$'); do
mv -- "$file" "`echo $file | sed "s/-[0-9].eml$/.eml/"`";
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment