Batch Folder Deletion + Batch Deletion Inside File

Job ID: 33609156

Budget: $10 – $30 USD

Hi

I've got a video sharing website where I would like to remove the 1080p resolution for all videos to get some TB free on my Linux server.

Just need a script or command to make everything happens.

That's how folder and file structure looks like (I am using HLS for streaming).
The 1080p folder + content inside has to be removed for each video.

(shot1.jpg)

Also, the 1080p line (2-3) has to be removed inside every .m3u8 file for HLS to understand that this resolution doesn't exist anymore.

(shot2.jpg)
Related categories: Linux Shell Script