2
I have a file from editing in wich I need to change some stuff. My knowledge of python is very basic. It would save me hours of copy/pasting if I would find a solution.
My file contains this:
002 AS V C 01:00:24:14 01:00:28:18 01:00:35:01 01:00:39:05 * FROM CLIP NAME: Sq3_Sh1.jpg
003 AS V C 01:00:39:05 01:00:42:23 01:00:39:05 01:00:42:23 * FROM CLIP NAME: Sq3_Sh4.jpg
004 AS V C 01:00:42:23 01:00:45:16 01:00:42:23 01:00:45:16 * FROM CLIP NAME: Sq3_Sh5.jpg
005 BA V C 00:00:00:00 00:00:05:20 01:00:45:16 01:00:51:12
006 AS V C 01:00:24:14 01:00:29:06 01:00:51:12 01:00:56:04 * FROM CLIP NAME: Sq3_Sh14.jpg
007 AS V C 01:00:56:04 01:00:59:10 01:00:56:04 01:00:59:10 * FROM CLIP NAME: Sq3_Sh6.jpg
I need to do 2 things:
Replace every AS with the from clip name. For example Sq3_Sh6 (without the extension)
Delete every line of text that contains BA
Maybe somebody could help?
Does it need to be
python
? Are you on Linux, wheresed
andawk
are present? – bertieb – 2015-08-25T19:39:18.113Sorry on windows... preferable python. Cause I know it a bit. Same for batch/cmd. – Fabian ESH – 2015-08-25T19:46:51.100
Can work with that :) – bertieb – 2015-08-25T19:58:24.810