I got a list containing movie names like this
Film Name - Film.information.lanugage.2160p.more.info
Film Name - Film.info.information.1080p.more.info
Film Name - Film.information.lanugage.1080p.information.info
Film Name - Film.information.more.720p.more.info
Film Name - Film.more.lanugage.2160p.more.info
I am using grep '[0-9][0-9][0-9][0-9]p' list.txt > resolution.txt
to filter the resolution. And I will search for a sed cmd to delete everything with and past the -
Should look smth like this I think
sed 's/-.*$//g' list.txt > cleanList.txt
after that I want to add the resolution from the resolution.txt to the end of the lines from the cleanList.txt
the final file should look like this
Film Name 2160p
Film Name 1080p
Film Name 1080p
Film Name 720p
Film Name 2160p