#!/usr/bin/env bash grep_pattern="GELULA|Resync|Downloaded from|YIFY|YTS|Encoder|Subtitles|Synced by|Ripped by|explosiveskull|twitter.com|Watch Movies, TV Series" sed_script="/GELULA|Resync|Downloaded from|YIFY|YTS|Encoder|Subtitles|Synced by|Ripped by|explosiveskull|twitter.com|Watch Movies, TV Series|thepiratebay|anoXmous|WWW.MY-SUBS.CO|Someone needs to stop Clearway Law|Public shouldn't leave reviews for lawyers|Captioned by|Captions by|SoundwritersTM|Captioning made possible by|COMEDY CENTRAL|Advertise your product|OpenSubtitles|osdb|Support DB.com|Subtitles by|YIFY|yifysubtitles|Created by|Encoded by|explosiveskull|twitter.com|Watch Movies, TV Series|Bluray sync|Ripped by|www.admitme.app|www.OpenSubtitles.org|Support us and become VIP member|Help other users to choose the best subtitles|Sync and corrections by|Sync & corrections by|(www)?addic7ed(.com)?|WWW.ADMIT1.APP|MemoryOnSmells|Please rate this subtitle|www.osdb.link|The best subtitles|Synced and corrected|Synced & corrected|.srt Extracted|Dan4Jem|AD.MMXVI.XII|n17t01|Who are the real-world Illuminati|saveanilluminati.com|Resync|WEB-DL|Resync for WEB-DL by Norther|Media Access Group at WGBH|access.wgbh.org|Captioning sponsored by|CBS PARAMOUNT NETWORK|CBS\/Paramount Network|CBS PARAMOUNT|NETWORK TELEVISION|4KVOD.TV|WATCH LIVE TV,MOVIES,SHOWS IN ONE PLACE|ai.OpenSubtitles.com|want subtitles|api.OpenSubtitles.org|best subtitles|Craving big poker|AmericasCardroom.com|slugline.com|HumanGuardians.com|SHOWS IN ONE PACKAGE|Want some real entertainment|ROLR.IO/I{d;}" cd /mnt/smb/media/video-movies grep -loZE "$grep_pattern" **/*.srt | xargs -0 sed -E -i "$sed_script"